iOS4 上的多任务处理:只能在 iPhone 上运行吗?

发布于 2024-09-09 02:22:21 字数 238 浏览 3 评论 0原文

我在第二代 iPod Touch 上安装了 iOS 4.0。

绝对无法进行多任务处理。没有任何内容进入后台,双击主页按钮也不会产生任何结果。我想针对此新功能测试我的应用程序,但它似乎不适用于 iPod Touch 设备?

这只适用于 iPhone 吗?或者是否有一些像 4.0.0.1 这样的小升级可以启用多任务处理?或者我必须在某个地方手动启用它?

真的很奇怪。我做的事情和苹果公司的人在演示视频中做的完全一样。

I have iOS 4.0 on an iPod Touch 2nd Gen.

There's absolutely no multitasking working. Nothing goes to the background, and double-tapping the Home Button results in just nothing. I wanted to test my app against this new feature, but it appears that it doesn't work for iPod Touch devices?

Does that only work on the iPhone? Or is there some minor upgrade like 4.0.0.1 that enabled multitasking? Or must I enable that somewhere, manually?

Really strange. I do the exact same thing like the Apple guys do in the demo videos.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(7

梦太阳 2024-09-16 02:22:21

文档说:

并非所有基于 iPhone 操作系统的设备都支持运行后台任务的功能。如果设备未运行 iPhone OS 4 及更高版本,或者如果硬件无法在后台运行应用程序,系统将恢复到之前定义的处理应用程序的行为。

您可以使用以下代码测试是否支持:

UIDevice * device        = [ UIDevice currentDevice ];
BOOL backgroundSupported = NO;
if( [ device respondsToSelector: @selector( isMultitaskingSupported ) ] )
{
    backgroundSupported = device.multitaskingSupported;
}

The documentation says:

The ability to run background tasks is not supported on all iPhone OS–based devices. If a device is not running iPhone OS 4 and later, or if the hardware is not capable of running applications in the background, the system reverts to the previously defined behavior for handling applications.

You can test if it's supported with the following code:

UIDevice * device        = [ UIDevice currentDevice ];
BOOL backgroundSupported = NO;
if( [ device respondsToSelector: @selector( isMultitaskingSupported ) ] )
{
    backgroundSupported = device.multitaskingSupported;
}
半夏半凉 2024-09-16 02:22:21

多任务处理仅适用于 3GS iPhone 及更高版本。您的第二代 iPod Touch(有点像 iPhone 3G)不太走运。对不起。

编辑:需要明确的是,您需要第三代 iPod Touch。

Multitasking only works on the 3GS iPhones and up. You are out of luck with your 2nd Gen iPod Touch (its like the iPhone 3G, sort of). Sorry.

EDIT: You would need a 3rd Gen iPod Touch, just to be clear.

饮湿 2024-09-16 02:22:21

您需要第三代 iPod Touch 才能正常工作。我遇到了同样的问题。

You need a 3rd gen iPod Touch for that to work. I've run into the same issue.

纸伞微斜 2024-09-16 02:22:21

根据这篇 wikipedia 文章(请参阅功能部分),仅第 3 代 iPod 支持多任务处理

According to this wikipedia article (see features section) multitasking is supported on 3rd gen iPods only

过去的过去 2024-09-16 02:22:21

Apple 的官方 ipsw(iphone 软件)已禁用 ipt2g 的多任务处理。如果越狱,您可以为设备启用多任务处理,但性能会很差。

Apple's official ipsw's (iphone software) have disabled multitasking for ipt2g. If you jailbreak you can enable multitasking for your device but the performance will be poor.

何其悲哀 2024-09-16 02:22:21

第 3 代 n 4g ... Iphones 支持多任务处理

Mutitasking is supported by 3 generation n 4g ... Iphones

沉睡月亮 2024-09-16 02:22:21

我相信 UILocalNotifications(多任务处理包的一部分)在 2G iPod Touch 和 iPhone 3G 上受支持。

I believe UILocalNotifications, part of the multitasking package, are supported on the 2G iPod Touch and the iPhone 3G.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文