Margin black using iPhone 5C on xcode - iphone

Yesterday I had to change my iphone 4S to 5C and now something is wrong in my xcode app. When I run the app in my iPhone 5C it shows some top and bottom black borders. I have search some on Google and here, but they are talking about put the 3 image launch (and I need help with that).
Any help will be much appreciated, because I'm stuck at the moment and I want to work it for 4 and 5.
Thanks in advance.

Apparently your app was built prior to iPhone 5 release (which was back in 2012), so the app is quite outdated. The reason for the black bars on top and bottom is that you do not have a iPhone 5 launch image in the app and your app is not optimised for iPhone 5 (and newer).
My recommendation is to take a look at iOS 8 and rebuild your user interface to support adaptive layouts, because you will also need to support iPhone 6 and 6+.

Related

Angular material layout broken with Iphone 5c & 6

I'm working on a website with angular-material. Everything works well except with mobile view on IOS.
Iphone: 5c or 6
IOS version: 8.1 or 9
Here's a screen shot, on the left part the good rendering on Android, on the right, the IOS one.
The only difference beteween IOS & Android is the store button shown (Play for android, AppStore for IOS) but I tried to remove them already. The code can be inspected directly on http://www.luditeam.com
Did I miss something? Is it a known problem?
Thanks in advance.

Auto app-resize for Iphone 6 Plus only (i.e. not Iphone 6)?

My problem is that I have skipped support for the Iphone 6P screen size due to time constraints. In other words, the app that is to be released will work on Iphone 4-6, but not 6P. What I want is either to not release the app for Iphone 6P (is that possible?) or, in the best case, make the autoresizing work for Iphone 6P like it did before I added the launchscreen for Iphone 6 (note: no launchscreen for iphone 6P).
tl;dr:
How do I make the auto appresizing work for Iphone 6P but not Iphone 6? Alternatively, if that is not possible, how do I skip support for Iphone 6P altogether, i.e. so that it does not appear in App Store for those devices?
Unfortunately, I'm afraid it can't be done. As long as you support iPhone 6 you have to support iPhone 6+. And you cannot tell the app to resize just for the 6+.
I'm sorry, you'll have to work all night long. :) But with autolayout and size classes, it can be achieved quite easily: https://developer.apple.com/design/adaptivity/

How to get a finished iPhone 5 app to display AS IF in "compatibility mode" on iPad with retina display?

This is my first iPhone app (iPhone 5), and it's basically ready to submit to Apple except...
I'm stumped on how to get my app to display on the iPad like it would in compatibility mode if it had a 3.5 inch screen. But it has a 4-inch screen, of course. It's an iPhone 5 app. And Apple has not yet provided a compatibility mode (that I am aware of) that will display the 4-inch screen properly in compatibility mode on the iPad. Instead, compatibility mode distorts and cuts off the 4-inch layout and smushes it into a 3.5-inch compatibility mode box.
I have read all of the stackoverflow Q&A's that I could find, plus many other web pages, tried numerous approaches, but all solutions end up with my iPhone storyboard layout distorted on the iPad and/or nailed to the top left portion of the iPad screen, or both.
I've been banging my head on this for days.
I sure hope someone can help.
You know how 3.5-inch iphone apps look on the ipad in compatibility mode? That is EXACTLY how I want my iPhone 5, 4-inch screen to look on the iPad, but with the 4-inch dimensions. I do not want the app to occupy nearly all of the iPad screen. Just a box that looks like the iphone 5 app, hanging right there centered in the iPad screen. I don't have a problem with figuring out how to connect things to my view controllers, fwiw.
I don't know how to put this any more specifically. If my question is unclear, perhaps someone could help me to restate it? This is NOT a duplicate of other stackoverflow topics I have been able to find. But I'm willing to be corrected.
Hellllp! :-) Thanks in advance for any light you may be able to shed. I'm hoping to avoid starting from scratch to create a usable iPad presentation for my iPhone 5 app.
iPad doesn't work like that. I believe the reason is that the 2x button would not scale properly for the 4 inch screen.
Either way, you need to make sure your app works well for the 3.5 inch screen anyway, this may be a good time to rethink some of the design of your app to make sure it works well in a 3.5 inch screen.

How to make iPhone4 and below version app compatible for iPhone5?

I have an application in iphone market which works for iPhone 4s and lower version. So now iPhone 5 has been launched which bigger size screen, my question is what all changes i have to do in my application so that it will be compatible with iPhone 5 also.
1) Do i have to rebuild my app for iPhone 5?
2) Do i have to make changes only in UI ?
3) Will the iPhone 5 will its make it compatible?
Your valuable replies will help me a lot. Thanks in advance.
Here is my answers,
1) Do i have to rebuild my app for iPhone 5?
If you want to utilize the complete screen space, you can add Default-568h#2x.png and rebuild the app and release it.
2) Do i have to make changes only in UI ?
You can utilize the complete screen space for iphone 5. You can code for screen modifications in case of other iPhones.
3) Will the iPhone 5 will its make it compatible?
Yes. It will make it automatically compatible. It will add a black strip on top and bottom to compensate for the extra space in the screen unless you add Default-568h#2x.png.
If your app uses the standard UIKit provided by Apple, you only need to add a 4 inch launch image to your app, and it will automatically resized itself. But if your app using custom controls or graphics-heavy like in games, you might want to adjust the images and take advantage of the larger screen.
You also have to make sure the methods you used do not deprecated on iOS6 to prevent the app from crashing. Some references if you need further reading.
To make older app compatible with iPhone 5 You need to look for Following things.
Latest Xcode version 4.5.
Open your project and select Upgrade settings for new version.
Add Default-568h#2x.png for new resolution .
For UI you have to change your xib's object autoresizing property.When you select View Go to
inspector and select size property It will show you None, Full Screen, Retina 4 options . Set autoresize property for all your Buttons , labels and check xib for retina 4 and None both.It is same like you set it for Landscape and portrait .
5.Some other changed will be in code because some method has been depreciated for ios 6.0.
6. After doing all this .You can run it on iphone 5 simulator for testing.
I have an app that was using GLKMatrix3 and its supporting functions. I found that the GLKMatrix3Multiply function would always crash on iPhone 5 hardware. Easy to workaround using GLKMatrix4 instead, but the point is that I would never have found the problem without actually trying my app on iPhone 5 hardware.
I was told to file a bug for the GLKMatrix3 problem, so maybe this will be fixed. But the code runs just fine in the iOS 6 simulator.
I learned from this that, whether or not you need to rebuild your app for iPhone 5, you do need to at least run your app on a device before advertising support for that device.

How to make an iPhone app and exclude iPhone 5?

I'm looking at the iPhone 5 specs, and see that the screen resolution is 640x1132 or so, which would break some of my manual+storyboard interface layouts. I'm wandering how to make an app so it would either show on iPhone 5 in 640x960 screen (with black bars), or exclude my app from sale to iPhone 5 at all, as I do not want to worry about the interface breaking. Is this possible for existing apps?
Thank you for your input!
Unless you include a Default-568h#2x.png image in your application, it will not run at full iPhone 5 resolution.
In the Apple keynote on the 12th Sept 2012, they said all current applications in the app store would run on the iPhone 5 with without a problem using the black letterbox at the top and bottom.
The way to remove the letterbox is by providing a Default-568h#2x.png image, like duskwuff mentioned. If its not there, the device will run the application will run at 640x960.