Center Align in interface builder in both iPhone 5 and iPhone 4
ios, iphone, user-interface, xcode
Solution
Using Autolayout in interface builder, select your view, choose the constraints menu in the bottom right of the canvas, and choose center vertically in container. This will apply to both screen sizes.
Problem
In XCode interface builder : I have some images in my view that I need them to be center aligned vertically. But screen height of Retina 4 and Retina 3.5 differs and I don't like to use OS6 for relative coordinates. Is there anyway to do this is interface builder or I should write some code?