Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
- {
- UIStoryboard *storyBord;
- if(UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPhone)
- {
- if(self.window.frame.size.height == 568)
- storyBord = [UIStoryboard storyboardWithName:@"Main_iPhone5" bundle:[NSBundle mainBundle]];
- else
- storyBord = [UIStoryboard storyboardWithName:@"Main_iPhone4" bundle:[NSBundle mainBundle]];
- }
- self.window.rootViewController = [storyBord instantiateInitialViewController];
- [self.window makeKeyAndVisible];
- return YES;
- }
- - (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
- {
- self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
- if (self)
- {
- if(UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPhone)
- {
- if([UIScreen mainScreen].bounds.size.height == 568)
- self = [super initWithNibName:@"FeedActivity_iPhone5" bundle:[NSBundle mainBundle]];
- else
- self = [super initWithNibName:@"FeedActivity_iPhone4" bundle:[NSBundle mainBundle]];
- }
- }
- return self;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement