title: UITextView created programmatically, allowing selection but no edit, ios6+
body: <p>I am trying to create a UITextView programmatically using below code:</p>
  
  <pre><code>- (void)setupTextView
  {
      if (!_logDetailView) {
          CGSize viewSize = self.view.bounds.size;
          CGRect frame =CGRectMake(0.0f,2.0f , viewSize.width, viewSize.height);
  
          _logDetailView =[[UITextView alloc]initWithFrame:CGRectIntegral(frame)];
          _logDetailView.backgroundColor=kEMCColor_Clear_Color;
          _logDetailView.showsHorizontalScrollIndicator = NO;
        //  _logDetailView.editable = YES; // tried setting this but didn't work
        //  _logDetailView.selectable = YES; // crashing on ios 6
          _logDetailView.userInteractionEnabled = YES;
          _logDetailView.autoresizingMask =UIViewAutoresizingFlexibleHeight|UIViewAutoresizingFlexibleWidth|UIViewAutoresizingFlexibleBottomMargin;
  
       //   _logDetailView.allowsEditingTextAttributes = YES; // tried setting this but didn't work
  
          [self.view addSubview:_logDetailView];
      }
  
      _logDetailView.attributedText = self.attributedDataString;
  
  }
  </code></pre>
  
  <p>I am trying to achieve following thing:</p>
  
  <blockquote>
    <p>UITextView should be selectable but un-editable.</p>
  </blockquote>
  
  <p>My problems are:</p>
  
  <ol>
  <li>I tried to set selectable property as YES, but it crashed on iOS6.</li>
  <li>I tried to set it as editable, but neither I was able to select the text, nor it showed any keyboard to edit it.</li>
  <li>I tried to set allowsEditingTextAttributes as YES, but neither I was able to select the text, nor it showed any keyboard to edit it.</li>
  </ol>