首页 > 其他 > 详细

解决导航、Tabbar、tableview配合使用时,tableview错位的问题

时间:2014-11-09 22:17:30      阅读:355      评论:0      收藏:0      [点我收藏+]

导航、Tabbar、tableview配合使用时,tableview会出现错位的情况,特别是除tabbar的第一个选项的tableview,

解决方法非常简单,如下:

self.tabBarController = [[UITabBarController alloc] init];
    
    self.tabBarController.edgesForExtendedLayout = UIRectEdgeNone;//防止tableview错位
    
    _tabBarControllerNav = [[UINavigationController alloc] initWithRootViewController:self.tabBarController];
    _tabBarController.delegate = self;
    

    self.window.rootViewController = _tabBarControllerNav;



解决导航、Tabbar、tableview配合使用时,tableview错位的问题

原文:http://blog.csdn.net/qqmcy/article/details/40955415

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!