Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 2    Views: 309

Shakerite
Code is Art
Profile
Posts: 65
Reg: Sep 09, 2011
location unknow...
650
09/15/12 05:10 PM (13 years ago)

Adjusting Screen for iPhone 5

Does anyone know how I can make my app fit the entire screen on the iPhone 5 while also having the normal size for all of the other Apple devices?
 
buzzbt
Android Fan
Profile
Posts: 233
Reg: Nov 14, 2011
las vegas
6,530
like
09/15/12 07:09 PM (13 years ago)
 
broomla
I hate code!
Profile
Posts: 61
Reg: Oct 31, 2011
Prague
610
like
09/23/12 10:28 AM (13 years ago)
In the BT_device.m find iOS Device Screen Dimensions and then paste this code: //if this is an iPhone 5, flag it in the appDelegate. if([[UIScreen mainScreen] bounds].size.height == 568){ [BT_debugger showIt:self:[NSString stringWithFormat:@"This device is an iPhone 5."]]; self.isIPhone5 = TRUE; }else{ [BT_debugger showIt:self:[NSString stringWithFormat:@"This device is NOT an iPhone 5."]]; self.isIPhone5 = FALSE; }
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.