Created
June 23, 2010 06:24
-
-
Save Arclite/449578 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//For classes introduced in iPhone OS 3.2, you can use the NSClassFromString function to see if the class is defined. If the function returns a non-nil value, you may use the class. For example: | |
Class splitVCClass = NSClassFromString(@"UISplitViewController"); | |
if (splitVCClass) | |
{ | |
UISplitViewController* mySplitViewController = [[splitVCClass alloc] init]; | |
// Configure the split view controller. | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment