views:

54

answers:

1

Hi, Please could you tell me how I could find out if multitasking is enabled on the iPhone. I am using Xcode.

+3  A: 

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;
bdmontz
Thanks but that tells you if its supported, I need to know if its enabled.
MKDev
Uh... it's always enabled if it's supported.
ceejayoz
Oh ok thanks, I must be implementing it wrong. I have tested it on an iTouch 2g and it says that multitasking is supported, but it isnt enabled on my itouch? Im running iOS4.1
MKDev