- Where Developers Learn, Share, & Build Careers
I'm working on a little iPhone app I am trying to change the font and color of the text inputed by the user I am They type something and then click on a button and the font or color changes and is displayed. I can not find any example code of this online, should anyone do this how it can be done? Thank you
If you are accumulating text and display it, but this font for label A basic example of implementing changes is
[myLabel setFont: [UIFont fontWithName: @ "someFontName" size: 1 9]]; Edit: - (IBAction) changeFont: (UIButton *) sender {[myLabel setText: myTextField.text]; [MyLabel set font: [UIFont fontWithName: @ "someFontName" Size: 1 9]]; }
Comments
Post a Comment