Reputation: 147
Please could you tell me how I could find out if multitasking is enabled on the iPhone. I am using Xcode.
Upvotes: 1
Views: 662
Reputation: 581
This is pretty much straight out of Apple's documentation:
UIDevice* device = [UIDevice currentDevice];
BOOL backgroundSupported = NO;
if ([device respondsToSelector:@selector(isMultitaskingSupported)])
backgroundSupported = device.multitaskingSupported;
return backgroundSupported;
Upvotes: 4