I am creating an app and everything is going smooth but when I rotate the device to landscape the images are not centered and it looks out of whack. Obviously there is a way to fix this. Any tips would be much appreciated. Thanks in advance.
Share
If you are using a NIB file to define your views, all of the objects are hard coded to a specific (X,Y) coordinate with length and width dimensions.
When you change orientation, the same coordinate and dimensions apply.
To change this, you will need to programmatically change the coordinates to whatever liking you find works best for your views.
Some example code from one of my apps:
Here is some apple documentation on the coordinate system:
https://developer.apple.com/library/ios/#DOCUMENTATION/General/Conceptual/Devpedia-CocoaApp/CoordinateSystem.html
Hope this helps, cheers!