What I want to do is to set font size in IB and only update text content in the runtime. For example, I put a textview in storyboard, then I set the font size to be 60. It was all good in the canvas, the size of the text is big. And in viewDidLoad method, I changed the text. Like this:
then the size of the text changed back to the default size. If I didn't comment out the last line, then the size will be set to 60. How can I fix this? Thanks.
Code:
- (void)viewDidLoad
{
[super viewDidLoad];
NSString *text = @"hello, world";
self.textview.text = text;
// self.textview.font = [UIFont systemFontOfSize:60.0];
}
then the size of the text changed back to the default size. If I didn't comment out the last line, then the size will be set to 60. How can I fix this? Thanks.