Monday, 15 August 2011

xcode - Centering with auto layout to work on all screen sizes? -



xcode - Centering with auto layout to work on all screen sizes? -

i'm going crazy on xcodes auto layout!! need som help now. made app 8 buttons (only viewed in lanscape) want (or ok) on iphone 4, 5 , 6/6+.

i want title , buttons centered horizontally on devices. nice if size increased when viewed on iphone 6/6+ not necessary. tried set buttons in seperate view managed on 4 , 5 way.

(i'm using xcode 6.1) click on link see construction of layout: http://groupnoir.com/test.html

please help!

this seems lot, have found work. create 1 big view hold buttons. need pin edges superview (editor > pin). add together 8 views within view , evenly space auto layout (using equal widths or pin desired width). should pin 4 sides of smaller views larger view , it's neighbors. can add together button within each of 8 views align horizontal/vertical in container (editor > align).

xcode layout

No comments:

Post a Comment