Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

UITextField changing font size via Interface Builder

I've been trying to adjust the font size for a UITextField that's embedded in a contentView of a UITableViewCell. I'm using cmd+T to bring up the font menu, and in there am using just the default font Helvetica size 18. Everytime I change the size it doesn't seem to make a difference at all when my UITextField is displayed. It's almost as if I need to do it programmatically for any changes to take place.

Any advice?

like image 689
Coocoo4Cocoa Avatar asked Feb 19 '09 16:02

Coocoo4Cocoa


1 Answers

Make sure you uncheck the "Adjust to fit" option on the UITextField. Otherwise if your text is longer than the field the framework will automatically shrink the text to make it fit.

like image 119
Adam B Avatar answered Oct 03 '22 06:10

Adam B