Search code examples
iosios8ios-app-extensioncustom-keyboard

How to detect if ios8 custom keyboard extension is running in not iphone 6 optimized app?


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?


Solution

  • 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