Really strange behaviour here. I've got a view with a scroll view inside, which contains my interface.
In my viewDidLoad
, I set the frame of my scrollView to have an origin of 0,0.
I log the origin at the end of my viewDidLoad
, and it's 0.
However, at the start of my viewWillAppear
, the origin is -20.
Does anyone know what kind of method could get called that would do this?
Thanks in advance
You are correct with the current method precedence:
-(void)loadView;
-(void)viewDidLoad;
-(void)viewWillAppear;
-(void)viewDidAppear;
Is there perhaps a rotation call or some other method in the way, such as didRotateToInterfaceOrientation;
for example? Also, is this scroll view part of a controller that's loaded from a nib file?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With