Discussion Forums  >  Images, Documents, File Locations

Replies: 1    Views: 155

tb
buzztouch Evangelist
Profile
Posts: 2050
Reg: Nov 03, 2011
Oxford
32,300
04/25/13 01:54 PM (11 years ago)

Different Header Image for iPhone 5 - Design Menu

I have re-created my Berlitz Oxford app, but now in v2.0. I have used the Design Menu plugin, but I would just like to tweak a few things for the iPhone 5. Here is a screenshot of my app on a 3.5 inch display. https://dl.dropboxusercontent.com/u/35528309/App/iOS%20Simulator%20Screen%20shot%2025%20Apr%202013%2021.49.19.png Here is a screenshot of my app on a 4 inch display: https://dl.dropboxusercontent.com/u/35528309/App/iOS%20Simulator%20Screen%20shot%2025%20Apr%202013%2021.48.54.png As you can see, there is a gap on the bottom. What I would like to do is to fill this gap up with a larger header image? Is it possible. You can see that the iPhone 3.5inch display fits perfectly, and I would like to make the iPhone 5's fit perfectly as well.
 
nadthevlad
Code is Art
Profile
Posts: 1025
Reg: Jun 07, 2012
Denver
21,850
like
04/25/13 02:08 PM (11 years ago)
I have used this with some success. Its the second answer here. http://stackoverflow.com/questions/12446990/how-to-detect-iphone-5-widescreen-devices. Just define the size for the element your tweaking inside the if else statement. if(UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPhone) { CGSize result = [[UIScreen mainScreen] bounds].size; if(result.height == 480) { // iPhone Classic } if(result.height == 568) { // iPhone 5 } } You will most likely put this in viewdidload.
 

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.