Is Multitasking Enabled iPhone SDK
Please could you tell me how I co开发者_如何学JAVAuld find out if multitasking is enabled on the iPhone. I am using Xcode.
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;
精彩评论