Anyway, we'll never know until we try. So, let's google something basic like convert app to iphone 5.
"You definitely need to install XCode 4.5, and to create a new splash image for the 4-inch screen, called
Default-568h@2x.png
.
You shouldn't change the size of your xibs, because you'll want your
app to work on both old and new phones. However, you may want to change
the autoresizing masks of some of the views in your xibs so that they
stretch to fill the larger screen."
I'm on 4.6, so that's not an issue. This new splash image, I don't have any idea.
It would be nice if I just have to change some autoresizing masks.
This one has a ton of upvotes:
I'm on 4.6, so that's not an issue. This new splash image, I don't have any idea.
It would be nice if I just have to change some autoresizing masks.
This one has a ton of upvotes:
// I did that recently
// This must be "create a new splash image for the 4-inch screen, called
Default-568h@2x.png ."
// 960 must be the 3.5
//
Example:
Also note: The auto-rotation API has changed completely, take a look at that as well if your application supports any rotation other than default.
// 568, which is 1/2 1036 px? Hmm - what's my current splash screen named? So, I found an older blog which says there's a function built-in to iOS which automatically loads the splash screen, no coding needed. The iPhone 4 splash is 960 by 640, which is easy to remember because 960 is just like 9630 without the 3 and 640 is like 6420 without the 2. Also, the 6 in 960 is the first digit of the 640. More good info:"The splash screen image should be in PNG format. By default, you should name the image file for lower screen resolution as “Default.png”. For the image intended for Retina Display (i.e. 640 x 960 screen resolution), name the file as “Default@2x.png”. The “@2x” is a standard scale modifier used in iOS. All image files designated for displaying in Retina Display should name with the optional string “@2x”. Let's see if I have anything named that...no such luck. Ok, let's display it in the simulator - command - s saves it directly to the desktop. Then, double-click on the image and brings it up automatically in preview. Go to tools, size and see it's very nicely in 960 x 640. So, next step is see how to get it into the app. to display. Ok, well, the splash page works. Of course, the others don't. I'll tackle them in my next post. |
No comments:
Post a Comment