title: iOS Clickable Words (UILabel or UIbutton's)
body: <p>I'm wanting to create a read only text area in my app which allows the user to click on any word and the app reads it out. I am however a little confused on which method would be the best. I see two options, use a UILabel and create some method to detect the region clicked then match it to the word in that region but it sounds hard to implement. On the other hand I could use an array of words to create a list of UIbutton's. Any advice and/or sample code to help me would be much appreciated, thanks Jason. </p>
  
  <p>Note: Each view has about 30 words on it.</p>
  
  <p>The solution below works well. For anyone else wanting to use this, these four lines will set your UIWebView to have a clear background and disable any scrolling or bounce.</p>
  
  <pre><code>[[myWebView.subviews objectAtIndex:0] setScrollEnabled:NO];
  [[myWebView.subviews objectAtIndex:0] setBounces:NO];
  [myWebView setBackgroundColor:[UIColor clearColor]];
  [myWebView setOpaque:NO]; 
  </code></pre>
  
  <p>And some handy css to stop the open popup when a user presses and holds a link.</p>
  
  <pre><code>*{-webkit-touch-callout:none; -webkit-user-select: none;} 
  </code></pre>