Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

MythicFrost

macrumors 68040
Original poster
Mar 11, 2009
3,944
40
Australia
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:
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?
 
Alright thank you, what's the difference?

EDIT: Nothing a quick google couldn't solve, thank you, it works now that I'm using | instead of ||.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.