简体   繁体   中英

Make app exclusive for iPhone 5?

I have an app that uses a lot of customisation. I built it using the 4" display, but when I go to the 3.5" it's sort of a mess. And then when I fix the 3.5", the 4" is messed up. Is there a way to make the app exclusive to the iPhone 5? Like how some apps are exclusive to certain versions of iOS? Thanks!

Not sure if you can make it exclusive to iPhone 5, but if you're struggling with this like I was you should look up how to use constraints in IB. I never knew they existed but they fixed the alignment issue for me.

Normally you can limit which devices your app can run on by adding the UIRequiredDeviceCapabilities key in your Info.plist file.

Apple documentation gives a list of different capabilities and how they are supported on different devices.

Unfortunately for your case there is no single hardware feature exclusive to iPhone 5 on this table. The closest you can come is requiring bluetooth-le but that still includes iPhone 4S.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM