排除不支持多任务的设备 [英] Exclude devices that do not support multitasking

查看:57
本文介绍了排除不支持多任务的设备的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在制作需要多任务处理的应用程序.有没有一种方法可以编译iPhone/iPad(通用)应用程序,以便排除不支持多任务处理的设备.我知道iPhone 1,iPhone 3G和iTouch 1-2不支持多任务处理,但是我还没有找到构建我的应用程序的方法,因此如果有人使用这些设备之一,它就可以阻止人们从应用程序商店下载该应用程序.

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 download the app from the app store if they have one of these devices.

我当时只是想在Xcode上将"Architectures"设置简单地设置为armv7,但是我不确定这是否行得通,是否还会带来其他后果.

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 should check in your application for multitasking support and fall back to a non multitasking alternative if it is not available.

假设您更改了受支持的体系结构以向上包含ARM7.如果这样做,则需要找出如果有人尝试将这样的应用程序部署到不兼容的设备上会发生什么.如果iTunes阻止他们这样做,那很好,这是正确的答案.但是,如果iTunes让他们确实部署了该应用程序,并且在尝试运行该应用程序时崩溃了,那么最好进行多任务支持测试并显示一条警报,告知用户您的应用程序为何无法运行.

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.

这篇关于排除不支持多任务的设备的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆