I want to set 2 different fonts within the same UITextField
and UITextView
. How to do it?
3
votes
5 Answers
5
votes
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:
or
As these usually have some convenience methods to make handling a lot easier.
1
votes
0
votes
0
votes