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:

  1. Basic UILabel:. UILabel scrolls up to the bottom of the screen, and does not allow cut text
  2. 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
  3. 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 canPerformAction subclass Is of > Anyone know how to disable the text selection interface in UITextView, even without disabling scrolling?

After the text

option number 2, but the 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.

Do not forget to install the property for lineBreakMode UILineBreakModeWordWrap so that your text UILabel .


Comments

Popular posts from this blog

Eclipse CDT variable colors in editor -

AJAX doesn't send POST query -

wpf - Custom Message Box Advice -