2013-10-21 103 views
1

我有一个新的ios7 tabbar应用程序。应用程序委托看起来像这样。ios7 Tabbar涵盖桌面视图

SomeViewController *someView = [[SomeViewController alloc] initWithNibName:@"SomeViewController" bundle:nil]; 
UINavigationController *someNav = [[UINavigationController alloc] initWithRootViewController:someView]; 

self.tabBarController = [[UITabBarController alloc] init]; 
self.tabBarController.viewControllers = [NSArray arrayWithObjects:someNav, nil]; 

self.tabBarController.delegate = self; 
self.window.rootViewController = self.tabBarController; 

[self.window makeKeyAndVisible]; 

SomeViewController是一个嵌入了全尺寸UITableView的简单视图。现在,当应用程序运行时,tableview将不会滚动到标签栏上方。

我已经尝试了很多很多的建议,比如

self.edgesForExtendedLayout = UIRectEdgeNone; 
self.tabBarController.tabBar.translucent = NO; 

,但似乎没有任何工作。在IB中,打开指南并将表格视图的高度设置在标签栏上方,但这也不起作用。

相反,我坚信的东西很简单。

TIA

+0

可悲的是从未找到解决方案。改为使用故事板。 – scorepro

回答

0

请问:

self.tabBarController.edgesForExtendedLayout = UIRectEdgeNone 

帮助?