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

时间:2014-11-09 22:17:30   收藏:0   阅读:356

导航、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;



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

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!