mic*_*ael 6 iphone uinavigationcontroller three20
我只在我的应用程序中使用Three20作为一个画廊.
当我.. : TTThumbsViewController从另一个视图中推送我时,导航栏不是我想要的颜色(根据我的应用程序的其余部分).我已TTDefaultStyleSheet根据此stackoverflow QA设置了一个.因为我只使用TTThumbsViewController,我有什么特别的事吗?
拇指视图也是在顶部创建了额外的空间,就好像它为导航控制器留出了空间,而不知道那里已经存在.我如何告诉TTThumbsViewController使用现有的uinavigationcontroller?或者表现得好像?
MYThumbsViewController *mYThumbsViewController = [MYThumbsViewController alloc];
[self.navigationController pushViewController:mYThumbsViewController animated:YES];
Run Code Online (Sandbox Code Playgroud)
问题描述的图形:
替代文字http://www.imgplace.com/img594/1309/39testapp.png
谢谢!
如果您不想使用透明导航栏,可以通过实现以下方法来纠正此问题:
- (void) updateTableLayout {
self.tableView.contentInset = UIEdgeInsetsMake(5, 0, 0, 0);
self.tableView.scrollIndicatorInsets = UIEdgeInsetsMake(TTBarsHeight(), 0, 0, 0);}
Run Code Online (Sandbox Code Playgroud)
小智 3
我找到了解决方案。
在我的ThumbsViewController我有这个:
- (void)viewWillAppear:(BOOL)animated {
[super viewWillAppear:animated];
UINavigationController* navController = self.navigationController;
navController.navigationBar.barStyle = UIBarStyleBlackTranslucent;
[self setWantsFullScreenLayout:YES];
}
Run Code Online (Sandbox Code Playgroud)
拇指现在处于正确的位置。
| 归档时间: |
|
| 查看次数: |
1913 次 |
| 最近记录: |