Discussion Forums  >  Images, Documents, File Locations

Replies: 1    Views: 134

Njmpwnz
Apple Fan
Profile
Posts: 165
Reg: Feb 08, 2011
Cleves
2,350
06/26/13 02:31 PM (11 years ago)

iPhone 5 Background Image

How do I do a background IMAGE for the iPhone 5 resolution? I'm using BT 2.0, XCode 4.6.2, iOS 6.1.3/7.0
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
06/26/13 03:38 PM (11 years ago)
Well, basically it's just a longer iPhone 4 (with respect to screen size) so instead of 640 x 960, you've got 640 x 1136. all icons are the same, named the same (@2x) etcetera. your background image is located in BT_Art and is named '[email protected]' If you're talking about one image for 320x480, 640x960, 640x 1136 then you can modify some of the code found in the MenuWithImage plugins... if([appDelegate.rootApp.rootDevice isIPad]){ [BT_debugger showIt:self theMessage:@"supposedly an iPad"]; // set your iPhone 5 background color, image, whatever... }else { if([UIScreen mainScreen].bounds.size.height == 568) { [BT_debugger showIt:self theMessage:@"supposedly an iPhone5"]; // set your iPhone 5 background color, image, whatever... }else{ [BT_debugger showIt:self theMessage:@"supposedly an iPhone 3/4"]; // set your iPhone 3/4 background color, image, whatever... } } That would go in your 'viewWillAppear' method of your plugin. Cheers! -- Smug
 

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.