Hey, I'm making a tabbed Web Browser. My issue is that when I rotate the device the web browser doesn't rotate properly, fitting the entire screen.
I've set:
But it doesn't work, the web views are being created via code. If I create one in IB and set the same settings it just automatically does it properly when switching to landscape...
I must be missing some kind of setting that isn't default when created in code? Does anyone have any idea what's wrong?
I've set:
Code:
tempWebView.autoresizingMask = UIViewAutoresizingFlexibleLeftMargin || UIViewAutoresizingFlexibleRightMargin || UIViewAutoresizingFlexibleTopMargin || UIViewAutoresizingFlexibleBottomMargin || UIViewAutoresizingFlexibleWidth || UIViewAutoresizingFlexibleHeight;
But it doesn't work, the web views are being created via code. If I create one in IB and set the same settings it just automatically does it properly when switching to landscape...
I must be missing some kind of setting that isn't default when created in code? Does anyone have any idea what's wrong?