MKDev
MKDev

Reputation: 147

Is Multitasking Enabled iPhone SDK

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

Answers (1)

bdmontz
bdmontz

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

Related Questions