uitableview - Indentation of UITableViewCell changes after rotation only on iOS 8 -



uitableview - Indentation of UITableViewCell changes after rotation only on iOS 8 -

i have uitableview 3 dynamic rows. when displaying uitableviewcontroller first time works fine. after rotation rows have info in indentation despite set setlayoutmargins zero. cannot reproduce issue in project until now. appearing in ios 8 but on 1 table. same source table working in test project without problems. difference here is in container other views.

i checked auto layout constraints, rotation methods, commented things out - without success. alter of indentation occurs between willrotatetointerfaceorientation , didrotatetointerfaceorientation or after viewwilltransitiontosize. updated ios 8.1 same results.

has expeerienced similar behavior?

ps: i've noticed when setting layout margins 0 on ios 8 animation not smooth default values (with indentation). on ios 7 animation smooth.

edit:

i tracked things down. if uitableviewcontroller embedded uinavigationcontroller indentation happens on rotation. if rotate farther goes it's set indentation (no indentation in case).

if uitableviewcontroller embedded container (and container in navigation controller) after rotation cell it's default indentation back. if rotate farther behavior stays same (always indented).

are events not send kid view controller or none of uses uitableviewcontroller embedded uinavigationcontroller?

in sentiment ios 8 bug or xamarin bug. perhaps 1 other verify if same installation. i'm using xamarin studio 5.5.2 xcode 6.1.

one ugly solution this:

public override void didrotate (uiinterfaceorientation frominterfaceorientation) { base.didrotate (frominterfaceorientation); // otherwise cells indented! ios 8 bug? tableview.reloaddata (); }

one utilize reloaddata or reloadsection in didrotatefrominterfaceorientation, despite deprecated function. there no viewdidtransitiontosize , have back upwards ios 7.

edit:

another solution have come draw custom separator line. works ios 8 , reply question (despite i've issue on ios 7 approach doesn't help).

ios uitableview ios8 orientation

Comments

Popular posts from this blog

xslt - DocBook 5 to PDF transform failing with error: "fo:flow" is missing child elements. Required content model: marker* -

mediawiki - How do I insert tables inside infoboxes on Wikia pages? -

SQL Server : need assitance parsing delimted data and returning a long concatenated string -