I have a UIView that creates a couple of the above with the following (UILabel example)
I have just set shouldAutorotateToInterfaceOrientation to
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
PHP:
dateLabel = [[UILabel alloc] initWithFrame:CGRectMake(149.0, 69.0, 155.0, 21.0) ];
I have just set shouldAutorotateToInterfaceOrientation to
PHP:
return YES
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