Hyphenation in native iOS app
问题 How can I activate automatic hyphenation in iOS? I have tried to set the hyphenation factor to 1 in the attributed text options of an UILabel, however I don't get any hyphens though. 回答1: The iOS 7 way . Use an UITextView instead of an UILabel . The hyphenationFactor (either as a NSParagraphStyle attribute or as a NSLayoutManager property) should work then (thanks to the new TextKit). The Web way . Use an UIWebView and the -webkit-hyphens CSS properties. The Core Text or the hard way . Use