Is there a way to edit a UITextField's font size with a UIStepper? i.e, tap the add button and the UITextField's font size increases by 1 or 5? So far I have tried [textField adjustsFontSizeToFitWidth:value];
with no luck. How could I do this? Also, if I can't control the font size with a UIStepper, how else can I edit the font size? Thanks
Asked
Active
Viewed 2,487 times
0

Big Box Developer
- 137
- 2
- 14
2 Answers
3
I think you should be using:
[textField setFont:[UIFont systemFontOfSize:value]];

Mazyod
- 22,319
- 10
- 92
- 157
0
UIFont *textFont = [UIFont fontWithName:@"Helvetica-Bold" size:8.0];
[textField setFont:textFont];
Try This...
-
This has nothing to do with using the UISteppers value for the font size. – Mick MacCallum Jul 18 '12 at 07:27