Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- - (void)loadView
- {
- [super viewDidLoad];
- if(UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPhone)
- {
- CGSize result = [[UIScreen mainScreen] bounds].size;
- if(result.height == 480)
- {
- // iPhone Classic
- [[NSBundle mainBundle] loadNibNamed:@"TipMainViewController" owner:self options:nil];
- }
- if(result.height == 568)
- {
- // iPhone 5
- [[NSBundle mainBundle] loadNibNamed:@"TipMainViewController-5" owner:self options:nil];
- }
- }
- }
Add Comment
Please, Sign In to add comment