I want to create a text display area (either UILabel or UITextView) in my iPhone app which (1) allows scrolling and (2) does not allow selection. I have tried the following tech
Take option number 2, but set the numberOfLines
property on your UILabel
to 0
. This will set the number of lines to 'unlimited' and prevent the vertical centring of the text.
Don't forget to set the lineBreakMode
property to UILineBreakModeWordWrap
so that your text doesn't run off the side of the UILabel
.