Question

I updated to the latest iOS 4 SDK, and updated my iPod touch to the latest OS fine. I built my application against 4.0, and it appears to use the multitasking functionality fine. However, when I run my application on my iPod touch, it does not appear to use multitasking.

How can I detect whether multitasking is supported on a device in code? Is there any way to work around this for unsupported devices?

Was it helpful?

Solution

You can check whether the device is capable of multitasking like this:

UIDevice* device = [UIDevice currentDevice];
BOOL backgroundSupported = NO;
if ([device respondsToSelector:@selector(isMultitaskingSupported)])
   backgroundSupported = device.multitaskingSupported;
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top