xcode - equal spacing between uiimageview using size class -
i'm trying add 4 or (more in future) uiimageview in ipad application landscape mode. want equal spacing between each uiimageview. used wregular hregular format build application , used few constraints, when try run application in simulator i'm getting different result different ipad devices. how can achieve having equal spaces between uiimageview irrespective size of screen ? below screen shots.
ipad2:
ipad air :
ipad retina :
resizable ipad :
auto layout system lets lay out app’s user interface creating mathematical description of relationships between elements. define these relationships in terms of constraints either on individual elements, or between sets of elements. using auto layout, can create dynamic , versatile interface responds appropriately changes in screen size, device orientation, , localization.
try link learn size classes , auto layout. http://www.appcoda.com/introduction-auto-layout/
Comments
Post a Comment