autoresizingMask, autoresizing and resizing in response to orientation changes...
Seams like it should be simple but I've been all over Google and all through the Apple Developer materials and it's still not working for me- I want scrollviews and all of their subviews to autoresize in response to changes in interface orientation....
I have tried:
In IB- Live Autoresizing is checked.
In .m-
self.AOScroller = [[UIScrollView alloc] initWithFrame:[[self view]bounds]];
self.AOScroller.autoresizingMask = UIViewAutoresizingFlexibleHeight | UIViewAutoresizingFlexibleWidth;
self.AOScroller.autoresizesSubviews=YES;
And, of course, it does autorotate to interface orientation.
But...well, nothing. The view/subviews do not resize at all when the device is rotated.
It would be very helpful if someone would post a tutorial explaining coding of the autoresizingMask. (Or is someone could direct me to an existing tutorial that I haven't been able to find...)
|