I tried to change UILabel.frame
with a button and it works correctly:
- (IBAction)changeSize:(id)sender
{
CGRect rec = self.labelHello.frame;
rec = CGRectMake(20, 20, 280, 300);
self.labelHello.frame = rec;
}
But if I use the same code in viewDidLoad
has no effect.
- (void)viewDidLoad
{
[super viewDidLoad];
CGRect rec = self.labelHello.frame;
rec = CGRectMake(20, 20, 280, 300);
self.labelHello.frame = rec;
}
Someone can help me?
Thank's Stefano