Friends,
I am a beginner and trying to know iphone programming basics.
If I create a Label from Interface Builder and Name it as “Sample”, can I change the font of this Label name from source code. Is it possible. I have no clue how to do it. Can anyone help me in doing this.
Thanks In Advance,
Anil
Where in your code you are changing the font? If you change that in init method then it won’t have any effect. The reason is IBOutlet connections are yet to be build. You can do it in viewDidLoad method.
- (void)viewDidLoad { self.sample.font = [UIFont systemFontOfSize:10.0]; }