uitableview - IOS Custom Table Cell does not Automatically Resize Width for Orientation Change -


have custom table cell it's own .xib , .h , .m. nothing fancy. when device rotates, cell width not change. tables cell index path called, width not changes (say portrait landscape). preventing this?

don't want hand set frame size.

will post code if need to, maybe can answer out code on one.

even if starting app in landscape not set larger width cell.

[addition]

also not work non-custom cells.

self.tableviewselection.autoresizessubviews = true; self.tableviewselection.autoresizingmask = uiviewautoresizingflexiblewidth | uiviewautoresizingflexibleheight; self.view.autoresizessubviews = true; 

xib table has resizing seemed setup correctly (non-ios6 support).

if overriding layoutsubviews or method, don't forget call it's super:

override func layoutsubviews() {     //...      super.layoutsubviews() } 

not doing result in problem facing.


Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -