Iphone 5 support [duplicate] - iphone

This question already has answers here:
How to develop or migrate apps for iPhone 5 screen resolution?
(30 answers)
Closed 9 years ago.
Today I tried uploading an update for an older iPhone app to the app store but was denied because it did not support the new iPhone 5 screen size. Do I have to rebuild the whole app to show on the 4 inch display or can I just compile it with the older 3.5 inch screens and it will do what other older apps do with centering it with black bars on top and bottom.

You do have to rebuild the app, with a launch image sized for a 5 inch screen. That is what tells the system that the app runs on a 5 inch screen.
(You can not do what older apps do and show with the black bars. Your app was doing that already. But now you are submitting an update, and it is forbidden to do that without running at full size on the iPhone 5.)
Now, when your app launches on a 5 inch screen, it might not look very good without some good autoresizing or autolayout. But that's another issue. You will be able to tell that pretty quickly just by looking (in the iPhone 5 Simulator).

Related

Iphone5: Black screen appearing at the top and bottom when running ios5 application on ios6 [duplicate]

This question already has an answer here:
Closed 10 years ago.
Possible Duplicate:
PhoneGap and iPhone 5: Remove top and bottom black stripes
Please enlighten me on this.
When i run my ios5 app on ios6 retina 4 inch simulator i can see a black screen at the top and bottom of the simulator. please help me in resolving this issue..
You must include a default splash screen image for iPhone 5. This acts as a flag, tells the device that your app is set up for the 4 inch display.
name of image must be: Default-568h#2x.png

Working with iphone4 as well as iphone5 [duplicate]

This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
How to develop or migrate apps for iPhone 5 screen resolution?
How to create application which will work on iphone4 as well as iphone5? I am trying to understand the hurdles behind it. But I am not able to find any apple doc related to this? What kind of things we need to do for this to make app runs well on iPhone4 as well as iPhone5.
Thank you.
Please refer images bellow!
No if you refer iPhone5 image, you can see black padding on top and bottom. But if you see iPhone4 image there is no padding. I trying to ask that How can we create iPhone application which will run on iPhone4 and iPhone5 as there is height difference in iPhone5. I am trying to create new application which needs to run on both iPhone4 as well as iPhone5. I am using xcode 4.5
For the iPhone 5 you will need to support iOS 6.
Dealing with the height differacne can be solved by make the appropriate height.
You can set the autoresize mask or if you wan to support iOS 6 only, autoLayout.

Bigger launch image on the 5th generation devices [duplicate]

This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
How to develop or migrate apps for iPhone 5 screen resolution?
How to deal with iPhone 5 screen size?
With 5th generation devices in the market having bigger screen, we need to have a bigger launch image (image that is shown when app icon is tapped). How would app make the difference like when to use the normal image and when to use the bigger image based on the device type?
I see a warning in my project when I build it for iPhone 6.0 simulator tap on which throws the below alert:
You need to add a launch image named Default-568h#2x.png. The compiler checks for this image and validates it. If the image is validated, your app is ready for iPhone 5 - otherwise not. Once you have the right image, follow the steps outlined in this post:
How to develop or migrate apps for iPhone 5 screen resolution?
If you are having issues with the images being used INSIDE the app, and you want to support iPhone 5 and pre-iPhone 5 devices, use this:
Dealing with different size images in a xib for iPhone5 versus iPhone4?
For short: If you want to support iPhone 5 screen you must supply launch screen for the 4" screen otherwise your app would run on 3.5" on the 4" screen.
If you put the 4" launch image that one would be used on iPhone 5 and the 3.5" one on iPhone 4 (could be different).
Please see my detailed explanation here.

app compatibility with iphone 5 screen size [duplicate]

This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
How to detect iPhone 5 (widescreen devices)?
Do any adjustments need to be made for an app started in development prior to the iphone 5 in order for them to work on the iphone 5's larger screen?
If so, what are these changes, or where can I find what to change? google hasn't been too helpful so far.
Thanks
After adding the Default-568h#2x.png launch image, follow the steps outlined in this post:
How to develop or migrate apps for iPhone 5 screen resolution?
If you are having issues with the images being used INSIDE the app, and you want to support iPhone 5 and pre-iPhone 5 devices, use this:
Dealing with different size images in a xib for iPhone5 versus iPhone4?
You need to add a default launch images with 640x1136px named Default-568h#2x.png to support the iPhone 5 screen.
First, you have to have a 640x1136 launch image (with -568h#2x.png suffix) to make it compatible with the iPhone 5, but to fully make use of the larger screen, there are a many ways to do it. I find the easiest way to do it is to make two separate storyboards, making a new one for the iPhone 5, while maintaining the one you have already used for the iPhone 4S, 4, etc. Using two storyboards removes the necessity for AutoLayout; enabling AutoLayout, it is good to note, also removes iOS 5 compatibility. Use the code in this answer to get started.
Depending on how your app views are laid out, you may not need to make too many changes. If you have views that resize and are anchored correctly, such as scroll views or table views, they will expand to fill the additional space on the iPhone 5 screen. You need to add an additional launch image for the new screen size too.
the iphone 5's screen is taller so you'd need to have images with a resolution of 1136x640 also included in your images folder. (add -568h#2x at the end of image's filenames)
also, everytime you will adjust your sprites and everything else that goes on the screen, you will need to account for the iphone 5 separately, just like you account for the ipad and the iphone (non retina and retina).

iPhone 5 Applications (4 inch Screen) [duplicate]

This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
How to develop or migrate apps for iPhone 5 screen resolution?
I'm (still) trying to convert one of my iPhone applications to iPhone 5, but it still looks like this in the simulator...
What am i doing and why won't it fill up the entire screen?
Have you provided a 4" sized launch image? That's the indicator that tells the OS that your application supports the full screen.
Have you selected in your UIView attributes inspector in XCode iPhone 5 screen size?
Please have a look at the url,
iPhone 5 TabBar not functioning in proper position
Now, in xib, at the right side, under 'Interface Builder Document', put a tick-mark on use autolayout and fix your objects in xib accordinlgy.
Download and install Xcode 4.5 GM. Set a 4-inch launch image for
your app. This is how you get 1136px screen height (without it, you
will get 960px with black margins on top and bottom).
Test your app, and hopefully do nothing else, since everything should work magically if you had set auto resizing masks properly. If you didn't, adjust your view layouts with proper auto resizing masks or look into Auto Layout if you only want to support iOS 6 going forward.
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.