Search code examples
iphoneuiimageviewinterface-builderiphone-5

How to fix autolayout in .xib file for iphone 5 4-inch screen


First I would like to say please to not give me a link to a tutorial to http://www.raywenderlich.com/33150/how-to-update-your-apps-for-the-4-inch-iphone-5-display

becuase he is using storyboards which is not useful since I am using a .xib file.

Also, this tutorial that everyone gives me does not help me fix my problem either: http://www.raywenderlich.com/20881/beginning-auto-layout-part-1-of-2

I am only writing this because everytime I post this question everyone doesn't read it correctly and just gives me the above two links. So the following is my problem: I have made my .xib project an autolayout project and when I switch from 3.5 to 4.0 inch screen it works perfectly fine. However, when I actually run the application it does not work. Here is a link to the folder for the project if you could help by opening the project in xcode: https://drive.google.com/folderview?id=0B0XkO0WuCozjd0lPcGUzNGpfY0E&usp=sharing

This is a picture of the problem: enter image description here


Solution

  • in xib select view then select identify andType and Deselect Use Autolayout like this enter image description here