知识点
相关文章
更多最近更新
更多iOS6和iOS7代码的适配(5)——popOver
2019-03-02 01:05|来源: 网路
popOver这个空间本身是iPad only的,所以iPhone上见不到,我记得微信上有个这样的弹出框,有扫一扫等几个菜单项,估计这是腾讯自己实现的,用于菜单的扩展。
popOver从iOS6到iOS7最大的变化还是扁平化,除此之外是背景改成了白色。如果你的popOver里面是一个tableView的话,那么自动会是一个半透明的显示,如果是自定义的一些内容,推荐也采用半透明的显示。
左侧的图是iOS6的样式,右侧的图是iOS7的样式。我们看到iOS7的白色背景并非纯白的,是一种带点灰色的白。
如果应用中popOver会有大小的变化,以前都是用contentSizeForViewInPopover这个属性来进行调整的,iOS7上废弃了这个属性,推荐使用
preferredContentSize这个属性来设置。
http://blog.csdn.net/sakulafly/article/details/18791797
转自:http://www.cnblogs.com/geek6/p/3840642
相关问答
更多-
查看此官方链接以供参考 Check this official link for reference
-
这似乎不是小牛队的问题。 你在使用Xcode 5.0.1吗? 我和它完全打破了UIAutomation工具。 我根本无法开始任何测试,因为它们都无法启动。 我试过Mountain Lion和Mavericks,结果是一样的。 我希望Apple尽快修复此问题。 It doesn't seem to be a Mavericks issue. Are you using Xcode 5.0.1? I am and it completely broke the UIAutomation tool. I cann ...
-
我会看看这个问题: 如何在iPhone 3.0操作系统中修复NSURLErrorDomain错误-999 您看到的错误代码是由UIWebView上的两个同时请求引起的。 这可能是由几件事引起的。 您的HTML是否正在进行重定向? 如何将内容加载到UIWebView ? 无论如何,看看我链接的问题,看看它是否对你有所帮助。 至于为什么你在iOS 7上看到这个而不是6 - WebKit在7中得到了改进,你可能会遇到由于速度而没有出现的竞争条件。 I would look at this question: Ho ...
-
我在启动应用程序时检查了iOS7或iOS6,并设置了insets的全局变量,所以如果是iOS7,这个变量有一个值,否则有另一个。 就像我解决我的问题。 I checked at start the app the iOS7 or iOS6 and the is set the global variable for the insets so if is iOS7 this variable have a value else have another. like that I resolve my pro ...
-
尝试启用NS Zombies来检查你是不是试图过度释放它听起来像你一样..你应该检查一下,看看imageView在发布之前是不是nil :) 如果可以的话,我建议你搬到ARC。 Try enabling NS Zombies to check that your aren't trying to over release it which it sounds like you are.. You should do a check to see if the imageView isn't nil befo ...
-
关于什么 [[UIBarButtonItem appearance] setBackButtonTitlePositionAdjustment:UIOffsetMake(5, 0) forBarMetrics:UIBarMetricsDefault]; What about [[UIBarButtonItem appearance] setBackButtonTitlePositionAdjustment:UIOffsetMake(5, 0) forBarMetrics:UIBarMetricsDefau ...
-
是的,您可以使用[[UIDevice currentDevice] systemVersion] ,如此问题中所述的答案: 如何检查iOS版本? 获取版本并相应地有条件地加载正确的XIB。 Yes, you can just use [[UIDevice currentDevice] systemVersion] as stated in this question's accepted answer: How to check iOS version? Get the version and condit ...
-
只需将目标的“部署目标”更新为iOS 6.0或6.1并提交更新即可。 当然你应该先在iOS 6下彻底测试一下。 Simply update your target's "Deployment Target" to iOS 6.0 or 6.1 and submit an update. Of course you should thoroughly test under iOS 6 first.
-
在界面构建器中选择您的按钮,在“属性检查器”窗格中,将“ Type设置为“ Custom ! My work around so far is to add a height constraint depending on the iOS version. In iOS6 the height of the segmented control is 43, in iOS7 the height is 28. The code: - (void)viewDidLoad { [super viewDid ...
-
适应从iOS7到iOS6的应用程序(Adapt app from iOS7 to iOS6)[2022-02-14]
第一个问题:确保您的部署目标是6.0,不要使用仅限iOS 7的API,或者使用检查 if ([someObject respondsToSelector:@selector(ios7onlymethod)] { // do your iOS 7 only stuff } else { // Fall back to iOS 6-supported ways } 或者使用 if ([[[UIDevice currentDevice] systemVersion] floatValue] >= ...