gpt4 book ai didi

ios - UIPopoverController 内的 UINavigationController - 在其他 View 后面的 iOS 7 导航栏中

转载 作者:行者123 更新时间:2023-11-29 13:01:22 25 4
gpt4 key购买 nike

我在弹出窗口中包含了一个导航 Controller 。该 View 包含一张我想部分覆盖的图像。在iOS6中是导航栏在后面,在ios7中正好相反。附上截图。有谁知道为什么? enter image description here

最佳答案

使用自动布局约束:http://www.raywenderlich.com/50317/beginning-auto-layout-tutorial-in-ios-7-part-1

或者试试这个(没有优雅的解决方案):

NSString *ver = [[UIDevice currentDevice] systemVersion];
float ver_float = [ver floatValue];

if (ver_float >= 7.0f)
{
CGRect frame = self.myView.frame;
frame.origin.y = self.navigationBar.frame.size.height;
[self.myView setFrame:frame]
}

关于ios - UIPopoverController 内的 UINavigationController - 在其他 View 后面的 iOS 7 导航栏中,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19702451/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com