Xcode6 Autolayout not scaling to fit screen size - ios

I have 2 UILabels and 2 UICollectionView set up with Autolayout so that they will look the same with different device sizes but it doesn't appear to be doing so.
Problem
I am running into a problem which is that the second UICollectionView located at the bottom appears to be cut off when tested in the iPhone4S Simulator or that there are really huge extra empty spaces when tested on the iPhone6+ Simulator.
Details of pictures below
The first picture is iPhone4S Simulator whereby certain parts of the UICollectionView is cutoff. The second picture is iPhone6+ Simulator and that it has too much empty spaces for some reason and is not scaling to fit.
The last picture is of iPhone6 Simulator, which is my ideal layout.
!enter image description here

Related

When i add a UIImageView to a UIScrollView the correct scrolling for iPad does not occur

I have two storyboards, an iPhone and an iPad. Under the iPhone in the storyboard to UIScrollView is already connected UIImageView correctly, when running on the simulator, everything works correctly and xcode does not issue any warnings. And in the storyboard for ipad tried to connect the same UIIMageView to the UIScrollView, but it does not work out correctly and without prejudices.
For different devices, there are two different images with different size, for iPhones a picture with a size of 7+, and for the iPad, the picture size for 12.9. When you start the simulator 7+, the picture by height is displayed completely to the entire height of 7+, and the width is scaled to the right, the width of the picture is large. Accordingly, on smaller iPhones, when displaying a picture, in height it will take up more space than the height of the phone screen and will also scroll up / down + to the right. The same effect I try to achieve and for ipad. I tried to bind everything via reset to suggested, as well as just add the constants for UIImageView relative to UIScrollView, but still it does not work. Although I do everything the same way as I did for an iPhone. Please help. Thank's
My project https://yadi.sk/d/WU7tjwEv3NNRm6
enter image description here

How to remove keyboard enlargement in ios objective c

I want to show keyboard smaller but causing problem. Please compare both images, keyboard size is bigger in first image than second image and also vertical spacing between two character is more . I have already added Retina 4-inch launch image ,Retina HD 4.7 inch launch image and retina HD 5.5 launch image. Keyboard is showing proper in iphone 6 but my app design causing problem when i run in iphone 5. How I can show keyboard smaller without design problem? I have searched a lot but couldn't get solution of this problem.
This is image shows the proper keyboard size which I want in my app.
this is my iPhone 5 design image, here keyboard is looking starched.
see this is my iPhone 6 design image, it is looking fine.

adjusting images sizes to different iPhone screen sizes in Xcode

I constructed the storyboard in the size class "compact width and regular height." when i run it in the iPhone 6 simulator, it looks fine and exactly as it does on the screen. but when i run the app on the iPhone 5 simulator, the images run off the screen. basically all the elements kept their exact size and did not scale down to the smaller screen size of the iPhone 5.
likewise, when run it in the iPhone 6plus simulator there is a lot of extra white space.
how can I fix this? is there an easy fix or do I have to remake all of the storyboards that I've done?
Since you are doing it with the IB you need to set aspect fill. Sometimes constraints will complain if you do this so only set ones that won't hurt you.

iPhone 6/6 Plus: UITableView separator flickering and different thickness

I've got a UITableView with separator set to Single Line.
On iPhones <= 5s everything looks fine, but on 6 and 6 Plus (device as well as simulator) the separators have a different thickness. It's even worse as they're flickering while scrolling which looks pretty bad. I don't set the height manually, so I have no idea what's causing this.
As you can see, the first two lines are a little bit thicker than the next two. Now if I scroll, they change from thick to thin and back, so it looks like flickering...
The problem is that your app doesn't support native resolution for the iPhone 6 and iPhone 6 Plus. Therefore it gets scaled up which results in the flickering.
You can enable native resolution by adding iOS8 launch images. Then your app will run in the right resolution and this problem will be fixed.
Add
Renders with edge antialiasing: YES
In you .plist file
Aqua is right, the thickness and flickering problems go away if you add iOS8 launch images.
But you don't need to make actual launch images if you are using storyboards. In Xcode, select your overall project and your app target, then under the General tab find App Icons and Launch Images, then in the Launch Screen File popup, just select your storyboard and the thickness/flickering problems go away.

How can I get the Xcode storyboard and the iPhone Retina (3.5-Inch) simulation to use the correct xcassets images?

Weird problem here which may be a bug in Xcode...
Using an Xcode 5.1.1 storyboard with auto layout, I am working on the design of a view controller that contains a full iPhone 4 sized UIImageView that references an xcassets image set. The xcassets image set includes 1x and 2x iPhone 3.5-inch images, and an iPhone 4 R4 image.
Problem 1: Once I set the Image View Image for the UIImageView in the utilities panel using a View Mode of Aspect Fit, the storyboard shows the smaller iPhone 3.5 image with white spaces at the top and the bottom of the view instead of the iPhone 4 image which would fill the entire storyboard representation of the view, as they are the same size since Xcode infers an iPhone 4 sized screen in the storyboard.
Problem 2: If I ignore problem 1 and run the program using the iPhone Retina (4-Inch) simulation, the applications selects the correct image size from xcassets and everything seems fine. However, if I run the simulation using the iPhone Retina (3.5-Inch) simulation, the applications also selects the correct sized image, but pushes the images down and display white space at the top of the page.
Before I start hacking around these problems, I thought I would reach out and see if anyone else has experienced either of these issues. Any help will be greatly appreciated.

Resources