View resizes in iPhone 6/6 PLUS (wrong size) [closed] - ios

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 7 years ago.
Improve this question
When switching to Xcode 7 i experienced some problems with iPhone 6/6plus screen sizes. I had an iPhone 4-sized view with black bars on top and bottom of it.
I read that i had to load appropriate launch images so I did it. The bars disappeared but the only views that scaled properly were the Tab bar and status bar (with wrong launch images i managed to fill the whole screen but the status bar was zoomed). The whole content stays 'windowed' and I don't know how to change it. Can anyone help me ?

You must use proper autolayouts Or Autoresizing Properties to make it look good on all the Devices.

Related

Black bars above and below on iOS simulator [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 5 years ago.
Improve this question
I found a bug in Xcode 9 autolayout. My UIView with UITableView for iPhone 5s (568px height) get resized to iPhone 4 (480 px height). I don't understand why and how I can fix this bug?
As you can see, self.height for UIView is 416px without statusBar and NavigationBar (416+64 = 480px)
Inside the storyboard in the simulator for iPhone 5s iOS11, UITableView has height of 568px.
Why my application for iPhone 5s is shown as it was on iPhone 4.
Are you talking about the black bars above and below the view? This isn't an issue of how views are laid out. It's a more fundamental problem. See where the status bar (with the carrier and battery indicators) is. This status bar is not part of your view hierarchy, but it's not in the right place either. Bottom line, the entire window has been shrunk, not just the views in your app.
This is usually because of a lack of appropriate launch images (and is why we use launch storyboard nowadays). Either supply the missing launch images or shift to a launch storyboard.

image not showing in launchscreen [closed]

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 5 years ago.
Improve this question
I have an old project and convert into swift 3. It have simple launch screen storyboard . Launch screen storyboard have an image as logo of company, This image not showing into device but i replace that image with another image , replaced image showing perfect. Launch screen behave strange.
Just delete launch screen storyboard and make a new launch screen storyboard then new image view on it .Make sure your image size 1x,2x,3x available.

Development for smaller screens [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 8 years ago.
Improve this question
We are developing application in Xcode 6 with deployment target of iOS 7. I was wondering what is best practice or how do we define that some UIViews should have different height on 3.5 and 4 inch screens? Our designer made graphic design of the application in photoshop for iPhone 6/6+, but it doesn't fit vertically well on smaller screens, so we can make everything a bit smaller, but the question what is the best practice doing this in code and/or in storyboard.
BTW: I am used to do everything in code as I don't like working with IB
Best practice is learn how to use AutoLayout to make constraints that adjust according to the screen size. This takes a lot of trial and error, playing with priorities etc. and if things change in a view you often have to fix a lot of constraints to get it working again. You could also build views and/or constraints in code, but I don't have much experience with that.
Alternatively you can make different storyboards for different screen sizes, but then you'd have to manage the two different versions.

UILabel doesn't show at the center on iOS Simulator (Xcode 6) [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I'm doing a tutorial where I have to change a label's text.
On the storyboard, I align my label's center, but when running on iOS simulator it goes to the bottom right.
I think it's because of the device that is set? On this tutorial it says to set to retina iPhone, but I can't find it.
I have iPhone 4s, 5, 6, and 6 plus, and and some iPads.
Can someone help me?
You need to learn about Auto Layout and more specifically how to set constraints so that your UILabel is at the center of any device running on iOS Simulator.
There is Ray's Video Tutorial on Auto Layout and the Beginning Auto Layout blog post for iOS 7. Maybe you give the rich Apple documentation a chance: Auto Layout Guide

Retina 4inch simulator is misplacing everything in my app [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions concerning problems with code you've written must describe the specific problem — and include valid code to reproduce it — in the question itself. See SSCCE.org for guidance.
Closed 9 years ago.
Improve this question
After upgrading to xcode 5 then when I test my app on retina 4 inch screen, it misplaces some of the objects I've put in my app. I tried everything and only have one solution that may work but would be very annoying to do. It is the screen detection method. I really don't want to go through the hassle changing a lot of my code just so that it can be compatible with a 4inch retina, because I would have to rewrite a lot of code just for a 4inch retina display... Is there a way to make it so that everything could be stretched to fit to screen?
Two possible Solutions:
For all of your nib (.xib) files or Views if using Storyboard, select View and set Size parameter value as "Retina 3.5-inch Full Screen". But using this one will fix your app screen height to 3.5inch.
In Inspector-tab, for every view items like labels, buttons, etc, set "Autosizing" parameters to stretch, reposition, fix or flexible positions and sizes of items according to change in screen height.

Resources