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
2010-10-27 21:36:53
Thanks but that tells you if its supported, I need to know if its enabled.
MKDev
2010-10-27 21:38:14
Uh... it's always enabled if it's supported.
ceejayoz
2010-10-27 21:51:31
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
2010-10-27 22:14:30