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

sleaver

macrumors member
Original poster
Jul 21, 2010
53
18
I have a UIView that creates a couple of the above with the following (UILabel example)

PHP:
dateLabel = [[UILabel alloc] initWithFrame:CGRectMake(149.0, 69.0, 155.0, 21.0) ];

I have just set shouldAutorotateToInterfaceOrientation to
PHP:
return YES
in my app, and you've probably guessed what I'm about to say/ask.

Of course my view won't look right in landscape. I know how to do it in IB by using the Autosizing section, but is it possible in code and if so how?

Thanks
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.