Make text underlined in xcode
问题 Hey I'm making an app that requires a certain part of a text view's text to be underlined. is there a simple way to do this like for making it bold and italics or must i make and import a custom font? thanks for the help in advance! 回答1: This is what i did. It works like butter. 1) Add CoreText.framework to your Frameworks. 2) import <CoreText/CoreText.h> in the class where you need underlined label. 3) Write the following code. NSMutableAttributedString *attString = [