I want to set 2 different fonts within the same UITextField and UITextView . How to do it?
UITextField
UITextView
Its a bit of work - you'll need to use Core Text and NSAttributedString to do this.
There are plenty of tutorials and examples, although I'd suggest using someone else's already-made UILabel subclass such as:
OHAttributedLabel
or
TTAttributedLabel
As these usually have some convenience methods to make handling a lot easier.
1.4m articles
1.4m replys
5 comments
57.0k users