简体   繁体   中英

Can I use UIRequiredDeviceCapabilities to restrict an app to iPads and the iPhone 6+?

I have an app whose UI needs quite a lot of screen space. At the moment, it's iPad only, but I think it would be OK on the iPhone 6+. I'd like to make it a universal app but restrict it to iPads and the iPhone 6+. Is there some combination of device capabilities I can set to achieve this?

You can't.

Because iOS 8 supports devices with 3.5" & 4" screens, you can't use the only-support-iOS-x technique.

Also, there isn't a setting in Xcode or a key for requiredDeviceCapabilities which allows you to make the app for iPhone 6+ only.

As you can see in this link there is no capability that isolates the iPhone 6 and 6+. In this sense you can drop the idea of doing so because you would never pass AppStrore approval for what you are looking for. [added]Unable to use device capabilities[/added] The AppStore leaves you with only TWO device-specific options iPhone (for ALL iPhone models) and iPad (for ALL iPad models) or both.

For that to work without a specific capability the AppStore would need to change (!)

Sorry for bearing bad news :)

Well Signo is righgt. iOS 8 supports devices with 3.5" & 4" screens, you can't use the only-support-iOS-x technique.

but yes you can do one more thing like for iphone6+, ipad you can continue with lots of screen space.and for other small screen devices you can design screen with required size by help of size class selection.

Hope it helps!!

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