ipad-mini

Is it possible to detect that your iOS app is running on an iPad mini at runtime?

走远了吗. 提交于 2019-11-27 07:53:53
Detecting different hardware at runtime is useful for analytics (among other, even more questionable purposes). Many iOS app creators may be interested to know how many users are experiencing their app on an iPad mini (rather than just knowing how many users are experiencing their app on an iPad with 1024x768 screen resolution - which would also be interesting). Is there any public API in Cocoa touch/UIKit/ObjC/C which could be used to detect that your iOS app is running on an iPad mini at runtime? Ideally, this method should distinguish between iPad 2 & iPad mini (which have the same number

Dealing with iPad Mini screen size

二次信任 提交于 2019-11-27 00:16:59
The new iPad Mini has a 7.9 inch screen size. Does it have a retina display? Will it automatically scale existing xibs and storyboards or do we have to create two versions of each? Do we deal with it similar to the way we deal with the iPhone 5? How would I create a definition or a condition to see if the device is running iPad Mini? If your app works on an iPad 1 or an iPad 2 it will work as-is on the new iPad mini. There is no retina display on the mini. From an app's perspective it's identical to the iPad 2. Edit: It was asked how to determine when an app is running on an iPad mini. There