Setting the font size on a text field

A quick tip for the frustrated iPhone developer!!

Even if you set the minimum font size in Interface Builder for a UITextField, it doesn’t work how it should!

Here is a one line fix!!

myUITextField.font = [UIFont systemFontOfSize:12.0f];

Cheers

Graham