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
If you want to find out what it could be, you can try registering your view for key value observing, as described here: http://developer.apple.com/library/ios/#documentation/Cocoa/Conceptual/KeyValueObserving/KeyValueObserving.html
You can register to listen for changes to the frame property, and then set a breakpoint in the observe method which should let you see exactly what the stacktrace is for when your origin is set to the strange value.