qiang1012
2013-04-13 12:21:00 +08:00
之前混用TabBar和NavigationBar来模仿微信的push效果时遇到过类似的问题,楼主可以参考一下这个代码片段:
// tabBarController.view.frame = (0, 0, 320, 480)
UITabBarController *tabBarController = [[UITabBarController alloc] init];
// screenArea = (0, 20, 320, 460)
CGRect screenArea = [[UIScreen mainScreen] applicationFrame];
// frame = (0, 0, 320, 460)
CGRect frame = CGRectMake(0, 0, screenArea.size.width, screenArea.size.height);
tabBarController.view.frame = frame;