ios - Rotation in iPad app -
in ipad app, view controller include 3 button, 1 navigation bar , 1 tool bar. when rotate view controller portrait landscape mode, 3 buttons disorder. navigation bar collapse tool bar. how can it?
you need larn layout. can lay out subviews of view in 3 ways:
manually
autoresizing (springs , struts)
autolayout (constraints)
if new project in xcode 4.5 or later, using autolayout default. need go nib , edit constraints xcode gave you, because not want.
you might want read layout section of book, has extensive give-and-take of how autolayout works , how edit constraints in nib: http://www.apeth.com/iosbook/ch14.html#_layout
ios ipad cocoa-touch
No comments:
Post a Comment