iPhone - Strike out an NSString [duplicate]
问题 This question already has answers here : Best way to strike out a text (2 answers) Closed 6 years ago . I would like to know if there is an easy way to strike/cross out some text on the iPhone? Thanks 回答1: Yes and No, NSString is a simple class, that only stores unformated text, but you can use an NSAttributedString to store such information, i.e. NSAttributedString* italicText = [[NSAttributedString alloc] initWithString:myNsString attributes:myCrossOutAttributes]; 回答2: