This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
How to develop or migrate apps for iPhone 5 screen resolution?
My apps use standard Apple controls. Some of them are really simple (UITableView nested in a UIView) and others are UITextView inside a UIScrollView inside a UIView
When I run the apps on my new iPhone 5, they are letterboxed. How do i update them to take advantage of the new iPhone 5 real estate?
First of all to remove the letter boxing, you let xcode know it should work on the iPhone 5 by adding an iPhone5 sized startup image which will be named Default-568h#2x.png
Straight away, your app will work without the letter box.
Then you need to move onto formatting your views to fit. From experience, every UITableView i've had has automatically resized to be longer, but most other views needed some tweaking of the Struts and Springs.
Related
This question already has an answer here:
How to efficiently use Autolayut and Auto-Resizing in same target?
(1 answer)
Closed 5 years ago.
I am working on new features (with Swift) on a legacy project ( Objective-C ) project.
Everything that I am receiving from designer (dimensions in points, font dimensions) put into storyboard or xib files got bigger in old project.
In SIMULATOR, here is an example with a uiview height and font dimension for iPhone 7
We tried:
Designer gives all dimensions in points. He is currently designing for iPhone 7/6. I am using in storyboard iPhone 7 view.
In a new project the correspondence is 1:1.
In the legacy project everything shows a little bigger.
What shall I search?
The iPhone 6 was introduced alongside iOS 8 and Xcode 6. As part of the introduction of the larger screen sizes, a legacy path was created that would allow older apps to run in a mode as if they were on an iPhone 4/5 screen size, simply scaling up the interface. This was intended to give app developers time to opt into the native, larger resolution of the iPhone 6 and 6 plus. In your question, I noticed this:
The larger battery icon is from your legacy app, while the smaller is from your brand new application. The contents of the status bar being scaled is a sure tell sign that the app is in this legacy mode. (Also, the interface often appears kind of fuzzy)
Therefore, I think your legacy app must have never adopted the launch screen storyboard or xib file that is needed to take advantage of the native resolution of the larger devices. To adopt it, you can see this answer.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
A year ago i created an iphone app with xcode 6, i addded the autolayout, everything works fine on iphone 5 and iphone 6, but earlier i created a new app which is a duplicate of the older app, i added also autolayout but nothing works normally on iphone 6, the size of images, buttons are small however i added the #1X and the #2x size. i used the sames ressources as the older app.
The difference between older app and the newest one is that before i use ModalViewControllers but now i use ContainerViewController and switching between views.
I did not understand from where it comes the problem.
This is a screen shot of older app on iphone 6
And This is a screen shot of the newest app on iphone 6
What can be the problem?
Thank you for help.
It is unclear from your question what your problem actually is (both screenshots look fine), but I guess your issue is that on the second one the elements are somewhat smaller in proportion to the screen, is that it?
If so, that's because the first one is running in iPhone 5 (4" screen) emulation mode, just scaled up to take more space on the larger screen, while the second one runs in native iPhone 6 mode. The views are actually the same size as on an iPhone 5, they just take less space in proportion to the size of the screen (that's the goal of a larger screen).
Check the SDK version the app is build against, as well as the presence of a Launch Screen XIB, I believe those are the triggers for switching to the native mode.
If you want (some) UI elements to be larger on larger screens, you can use height or width constraints with multipliers, but fonts are trickier, you'll need to handle that in code.
This question already has an answer here:
iPhone6 status bar showing zoomed in app but not on home screen [closed]
(1 answer)
Closed 8 years ago.
I've encountered a strange behavior. I began to develop an iPhone app months ago, back when iOS8 and iPhone6 were not out. But now that I've an iPhone 6+ with iOS8, all the tableviews in my app seem to be kinda "zoomed". So I tried to copy & paste my tableview code on a new fresh project and here are the results :
My app :
Test project with same code :
We can clearly see that the tableview in my app is bigger. And as I said I'm using the exact same code to generate this TableView, so what's wrong ?
I tried to convert my app to Xcode 6 size classes but this doesn't seem to be the problem.
P.S : I'm developing my app on the last Xcode version (6.1)
The cells I'm using are just standard UITableViewCell
You need to include a LaunchImage .xib in your project. Otherwise the 6-Plus treats your app as running on a plain iPhone 6 and zooms it up.
See https://developer.apple.com/library/ios/documentation/userexperience/conceptual/MobileHIG/LaunchImages.html
This question already has an answer here:
Convert app from iPhone 5 to iPhone 4 device
(1 answer)
Closed 8 years ago.
I have successfully created and tested my iOS app for iPhone 5 screen size. I have disabled Auto Layout in my storyboard because I have created custom subviews. What is the easiest way to make it compatible with older device screen sizes (like iPhone 4/4s)? Do I need to re-enable Auto Layout? What is the traditional method of making iOS apps with dynamic screen sizing?
You can use property autoResizingMask of UIView to do declare the autoresizing for views you want it changed dynamically.
This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
How to deal with iPhone 5 screen size?
The new iPhone 5 has a 4 inch display.
In IB, I want to make my iPhone 5 view different to my 4S. The 4S version needs a scroll view, but the 5 doesn't.
How can I create two views (with all connected outlets) in the same xib, one which is 3.5 inches, and one which is four inches?
Do I have to create a totally new xib and include it for iPhone5 ?
I am just a bit unclear on the approach.
(I have seen other questions which don't answer this particular question)
If you would like a completely different view for the iPhone 5 then yes you should use a different nib, however I would advise that you need not use different nibs and instead use autolayouts to autosize your views accordingly so that you can have 1 codebase working across multiple devices.