Hacker News new | ask | show | jobs
by bsaul 4572 days ago
Never tried that component, but not being able to set a custom font for a text view is such an obvious miss for an OS that claims to be so much text oriented. I can't count the number of times i've had to bind a UILabel into my code just to set the font.

I know, UIApparence should be the way to set fonts everywhere, but that defeat the purpose of rapid prototyping IB is made for.

5 comments

You may want to check the release notes of the latest iOS/Xcode beta.

(but yes, I agree, that it has taken this long is crazy)

There's a third party plugin for Xcode claims to do this called MoarFonts and asked you for $10, however I have not tried that. Runtime attributes patch wouldn't take effect instantly in IB but it works reliably well in our experience.
Link to MoarFonts: http://pitaya.ch/moarfonts/
> not being able to set a custom font for a text view is such an obvious miss

Can't you just use an attributed string? Xcode lets you pick a font using the standard system font picker then.

Thanks, we'll add that in the next commit. I wish there was an easier way than having to cover all of those objects.
Subclass UILabel and set it in the initializer?