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
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions | |
{ | |
// Override point for customization after application launch. | |
if (![self deviceHasCamera]) { | |
// the storyboard name is the part before .storyboard | |
UIStoryboard *mainStoryboard = [UIStoryboard storyboardWithName:@"Main" | |
bundle:nil]; | |
// set the rootviewController to the viewcontroller in the storyboard above. | |
self.window.rootViewController = [mainStoryboard instantiateViewControllerWithIdentifier:@"noCamera"]; | |
} |
OlderNewer