I have an iOS UILabel that needs some of the text to be normal and some of the text to be bold. The bold text is actually supposed to be a link to another part of the app, but for now, I'm just reacting to tapping on the entire label. How can I format some of the text to be bold?
How to format some text as bold within a UILabel?
1.2k views Asked by Andrew At
2
There are 2 answers
0
On
You need to use NSAttributedString. Please look at this answer to see an example: Any way to bold part of a NSString?
Use the
attributedText
property: