Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I determine if multitasking is supported on a device?

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?

like image 453
user379760 Avatar asked Aug 09 '10 06:08

user379760


1 Answers

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;
like image 101
tobiasbayer Avatar answered Sep 29 '22 20:09

tobiasbayer