Saturday, 25 May 2013

iOS: macro for minimum supported target iOS version (deployment target)

Each Xcode project has a deployment target, that is the minimum iOS version your application should support.

Sometimes you need to use different code for different deployment target, here is an example:

#if __IPHONE_OS_VERSION_MIN_REQUIRED < 60000
[self presentModalViewController:webViewController animated:YES];
#else
[self presentViewController:webViewController animated:YES completed:nil];

#endif

No comments:

Post a Comment