Monday, 21 April 2014

Check if multitasking is available iOS device?

#pragma mark- Multitasking -

+(BOOL)multitaskingAvailable
{
  UIDevice* device = [UIDevice currentDevice];
   BOOL backgroundIsSupported = NO;
  if ([device respondsToSelector:@selector(isMultitaskingSupported)])
       backgroundIsSupported = device.multitaskingSupported;
  return backgroundIsSupported;
}

No comments:

Post a Comment