iphone - How to disable select functionality in UITextView? -
Text after "
I want to create a text display area (either UILabel or UITextView) (1) scrolls and permissions of my iPhone app (2) Selection is not allowed I have tried the following techniques failed:
- Basic UILabel:. UILabel scrolls up to the bottom of the screen, and does not allow cut text
- A UIScrollView inside the Giant UILabel: UILabel text (vertical) placed in the center of the huge UILabel, then it is often outside of my UIScrollView Was
- UITextView:. So far this approach is best done, because it does not clip the scroll and text, I can also enable the UITextView subclass, and also. But, when the user captures the text, the text selection interface appears. I am not interested in this interface and it is actually distracting user experience. It is not before
tap event , but apparently this function is called : withSender: I try After the text option number 2, but the Do not forget to install canPerformAction subclass Is of > Anyone know how to disable the text selection interface in UITextView, even without disabling scrolling?
so that your text numberOfLines
property Set your UILabel
to 0
. It will not be able to determine the number of lines for 'unlimited' and vertical focus of the text. the property for lineBreakMode
UILineBreakModeWordWrap UILabel
.
Comments
Post a Comment