iphone - how do I keep buttons on a XIB view in the same relative position after orientation change? -
iphone - how do I keep buttons on a XIB view in the same relative position after orientation change? -
how maintain buttons on xib view in same relative position after orientation change?
so have:
the base of operations application based on xcode 4 template "utility application", has mainview & flipsideview controller on main view here have on xib interface builder design layout in portrait (a) button in bottom left, (b) uilabel in bottom middle, , (c) on bottom right little "i" button flick on flipsideview i note when go portrait landscape templates's "i" button in bottom right still stays on bottom right, buttons (i.e. & b above) aren't keeping relative position.so how maintain these buttons in bottom left , bottom centre respectively after orientation change? achievable in ib or require code somewhere (if little code illustration nice)?
there tab in interface builder can set resizing options, had simular problem lastly week relatively new ios development, when on tab can set how application should respond changes in size of view, in other words when orientation changes size of view changes , buttons need know how resize. no code needed because interface builder rocks. can google how port iphone app ipad cover of resizing stuff, , have @ blog, has bunch of handy tutorials on ios development, there 1 on iphone ipad porting, cover device rotation. http://www.raywenderlich.com/tutorials
iphone ios interface-builder xcode4 uiinterfaceorientation
Comments
Post a Comment