Would I use a UILabel for that? Or is there something better?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It depends on what you want to achieve. If you just want a multi-line label, then you can use
UILabelwith thenumberOfLinesparameter set to something other than 1 (set it to zero if you don’t care how many lines are used). If you need to let the user edit the text, then aUITextViewis the way forward. Line breaks are indicated using the\ncharacter, not the/nsequence as Emil incorrectly wrote.