\n not working in UIlabel
问题 I've seen similar questions here, but still can figure out why it's not working. How to add line break (in other words add new paragraph) in multiline UIlabel? I have a label with a lot of text, lbl.numberOfLines = 0; lbl.sizeToFit; but I'm still getting something like this: "Some text here\nAnd here I want new line" Thank you 回答1: UILabel won't respect \n, You can use option-return (in Interface builder) to force where you want a line break. You can use a UIWebView in place of the label and