UILabel reset after Autorotate

Posted by MB on Stack Overflow See other posts from Stack Overflow or by MB
Published on 2010-05-05T16:36:12Z Indexed on 2010/05/05 16:38 UTC
Read the original article Hit count: 353

Filed under:

Hi,

I have a UILabel in a view that is set by calling a method against my view controller. The app is a TABBar app and the VC is in the MORE section.

When I rotate the phone the label disappears (don't mind that) when I rotate back the label is showing all .......... (the value it is set to in the XIB)

I added a line to set the label in the shouldAutoRotateToOrientation method

lblProductTxt.titleLabel.text = self.productText;

when autorotating what viewcontroller methods are being called. ??

the shouldAutoRotateToOrientation method doesn't get called when the VC is in the More section but when I move it it does get called but has no affect on the labeltext

© Stack Overflow or respective owner

Related posts about uitabbar