title: How to disable select functionality in UITextView?
body: <p>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 techniques unsuccessfully:</p>
  
  <ol>
  <li>Basic UILabel: Didn't allow
  scrolling, and clipped text to the
  bottom of UILabel space on screen.</li>
  <li>Giant UILabel within a UIScrollView: the UILabel kept placing the text (vertically) at the center of the giant UILabel, so it often was outside of my UIScrollView.</li>
  <li>UITextView: So far this approach has worked the best, because it scrolls and does not clip the text. I can even subclass UITextView to enable <a href="https://stackoverflow.com/questions/2038975/resize-font-size-to-fill-uitextview">resizing the text to fit within the textview</a>, and <a href="https://stackoverflow.com/questions/2042930/successful-swipe-in-uitextview/3385167#3385167">passing any touch events to the superview to detect taps &amp; swipes</a>. <strong>But, when the user taps and holds on the text itself, the text selection interface appears.</strong> I am not interested in this interface and it actually is distracting from the user's experience. I have tried to subclass <code>canPerformAction:withSender:</code>, but apparently this function is called <em>after</em> the tap event--not before it.</li>
  </ol>
  
  <p><strong>Does anyone know how to disable the text selection interface in UITextView, without also disabling scrolling?</strong></p>