我有一个自定义tableViewController,我将其添加到TabBarController中
self.tabBarController.viewControllers = [NSArray arrayWithObjects:someOtherViewController, customTableViewController, nil];
self.tabBarController.selectedIndex = 1;
Run Code Online (Sandbox Code Playgroud)
我遇到的问题是,运行iOS7的iPhone 4屏幕底部的标签栏覆盖了最后1.5个tableViewCells.当我使用iOS模拟器 - iPhone Retina(4英寸)/ iOS 7.0时,问题仍然存在.
如何使tableView与屏幕底部的tabBar顶部对齐,而不使用"魔术数字"?