iphone - UITableView autoresizing masks on by default? -


i have tableviews in application , have set autoresizing masks flexible width , height. when opened viewcontroller use tableview noticed had not set autoresizing masks, tableview looks resizes correctly on ipad. mean setting autoresizing masks on tableview not needed?

more precisely, uiviewcontroller framework likes explicitly resize views depending on context in they're presented. example, on iphone uinavigationcontroller , uitabbarcontroller explicitly resize views of viewcontrollers fill available screen real estate. on ipad, uisplitviewcontroller explicitly resizes views of master , detail view controllers fit appropriate dimensions in landscape mode. explicit resizing performed these container view controllers not technically autoresizing, these view controllers disregard view's autoresizingmask.

a view's autoresizingmask answers 1 specific question: how should view behave if bounds of superview change? when uiviewcontroller's view gets explicitly resized container view controller, not considered autoresizing because it's not happening result of change in superview's bounds.

of course if explicitly resized view has subviews, subviews autoresized side-effect of explicit resizing of superview, specified autoresizingmasks (provided superview has autoresizessubviews set yes).


Comments

Popular posts from this blog

c++ - Is it possible to compile a VST on linux? -

java - Output of Eclipse is rubbish -

jquery - Confused with JSON data and normal data in Django ajax request -