Search code examples
objective-cioscocoa-touchuilabeltext-formatting

Have half a UILabel text bold and half not?


I want half of my UILabel's text to be bold and half to not be bold. How can I do this?


Solution

  • NSAttributedString allows for specification of formatting within a string, but sadly, UIKit does not yet do anything with this. However, there are a few open-source implementations that do. Check out OHAttributedLabel.