当我将导航栏的半透明属性设置为NO时,我面临一个问题,其他UIComponents如按钮和UIViews没有出现在适当的place.What中必须是原因吗?
所以我得用这个:
self.navigationController.navigationBar.translucent = YES;而不是我想要的是:
self.navigationController.navigationBar.translucent = NO;发布于 2014-03-14 08:58:21
它看起来像是iOS 7导航栏的问题。您可以尝试将此代码添加到视图控制器中的wiewDidLoad中。
if ([self respondsToSelector:@selector(edgesForExtendedLayout)]) {
self.edgesForExtendedLayout = UIRectEdgeNone;
}它帮助我解决了我的问题
https://stackoverflow.com/questions/22400189
复制相似问题