ios - Creating logic to handle view/button sizes -
i create logic handle view sizes subview , buttons, based on mainscreen size.
so this: //discover main screen size (which different depending on orientation
//calculate subview size based on width divided 3
//calculate button size based upon width of main screen //calculate spacing padding left , right button based on main screen size width, , button width...
what right way set up? how create object/var/value holds screen size can used again. ideally want calculations 1 time @ top of implementation file , utilize variables multiple times different buttons in application. completed programatically opposed using interface builder.
have thought using autolayout ?? . much cleaner , easier specify size relationship.
ios ios5 uiview uiscreen mainscreen
No comments:
Post a Comment