如何检测ios8自定义键盘扩展是否在iphone 6优化应用程序中运行? [英] How to detect if ios8 custom keyboard extension is running in not iphone 6 optimized app?
本文介绍了如何检测ios8自定义键盘扩展是否在iphone 6优化应用程序中运行?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在标准显示模式下未针对iphone 6优化的应用中,键盘和状态栏显示为缩放。这会导致我的手动布局自定义键盘扩展显示拉伸。如何检测此缩放以修复布局?
In the app that not optimized for iphone 6 in standard display mode keyboard and status bar shows zoomed. This causes my manually layouted custom keyboard extension to show streched. How can I detect this zooming to fix layout?
推荐答案
使用 self.view.frame.size.width 缩放模式&返回320我在6+上的常规模式414(希望也在6上) - (void)updateViewConstraints
Use self.view.frame.size.width It returns 320 for zoomed mode & 414 for regular mode on my 6+ (hopefully on 6 also) in - (void)updateViewConstraints
这篇关于如何检测ios8自定义键盘扩展是否在iphone 6优化应用程序中运行?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文