【发布时间】:2013-11-05 02:46:51
【问题描述】:
如题,在 iOS7 中,如何在 UIPopoverController 中更改导航栏背景/颜色?
我用的是下面的方式,但是不行
UINavigationController * navController = [[UINavigationController alloc] initWithRootViewController:packListViewController];
[navController.navigationBar setBarTintColor:[UIColor blackColor]];
if (_packListPickerPopover == nil) {
_packListPickerPopover = [[UIPopoverController alloc] initWithContentViewController:navController];
_packListPickerPopover.popoverContentSize = CGSizeMake(950, 345);
}
非常感谢
【问题讨论】:
-
@Jatin,谢谢,我在这个帖子之前讨论了那个话题。而且我想知道是否有一些简单的方法可以做到这一点(在那个主题中,它太复杂了)
-
@Jacky 实际上这个问题可能更密切相关:stackoverflow.com/questions/19095195/… 和最佳答案对我有用
标签: ios ios7 uinavigationbar uipopovercontroller