开发者

Exclude devices that do not support multitasking

开发者 https://www.devze.com 2023-03-15 11:27 出处:网络
I\'m making an app that requires multitasking. Is there a way to compile an iPhone/iPad (universal) app so it excludes devices that do not support multitasking. I know iPhone 1, iPhone 3G and iTouch 1

I'm making an app that requires multitasking. Is there a way to compile an iPhone/iPad (universal) app so it excludes devices that do not support multitasking. I know iPhone 1, iPhone 3G and iTouch 1-2 do not support multitasking but I haven't found a way to build my app so it prevents people to dow开发者_如何学JAVAnload the app from the app store if they have one of these devices.

I was thinking to simply set the "Architectures" setting to armv7 on Xcode but I'm not sure if this will work and if it will have any other consequences.

Any help will be appreciated. Thanks!


You can set the minimum API level supported to be iOS 4.3. This version only runs on devices that support multi-tasking.


You should check in your application for multitasking support and fall back to a non multitasking alternative if it is not available.

Suppose you change the supported architectures to include ARM7 upwards. If you do, you need to find out what happens if somebody attempts to deploy such an application to an incompatible device. If iTunes stops them from doing it, that's fine and it's the right answer. But if iTunes lets them do deploy the app and it crashes when they try to run it, it would be far better to do the test for multitasking support and display an alert telling the user why your app won't work.


Go to targets section of your project--> navigate to Build Tab-->Go to Deployment tab & select IOS deployment target as 4.2. It will not run on IOS versions earlier than this.

Exclude devices that do not support multitasking

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号