Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

mccannmarc

macrumors 6502
Original poster
Aug 15, 2008
270
0
Manchester, UK
Has anyone successfully managed to get a UITextField to display a custom font using Glyphs?

I've subclassed it and tried overriding both the drawRect and the drawTextInRect methods but they never seem to get invoked. I've read somewhere that a UITextField keeps an internal UILabel which it uses to draw its text and the drawText in the UITextField goes straight to its UILabels drawTextInRect method so its pointless overriding it anyway! Bloody stupid if thats the case...

If its the case has anyone found a way round it? I really don't fancy having to add input functionality to a UILabel or something just so I can draw my custom font when entering text :mad:
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.