How to solve the problem of layout of views when creating app supported for iOS 6.1 and the previous version of it ?
I updated my xcode to version 4.6 ! The first problem I faced was the layout issue with the screens. As I wanted to develop app that supports not only iOS 6.1 but also with the backward compatibility with the previous versions.
After I designed the screen, I ran it on 6.1 simulator, it worked well. Then I chose the hardware iPhone ratina 3.5 and it got weird. Images got misplaced and didn't work well.
I tried to have a look on many forums but couldn't find the easy resolution, so I spent some time and was changing properties and was testing.
The solution is :
- Go to the size inspector
- See the left box ?
- Set Origin to the centre
- Don't use auto layout, it is for vertical and horizontal view settings / Make it unchecked
- If it's just strict portrait then go this way.
If you have more queries, you can write me here or contact me on facebook.com/harshsthaker