title: Add buttons and texts in UITextView
body: <p>Hi friends i want to create a view in that I can add texts and buttons to. And I want to       maintain the sequence. Like in a text view i want to add texts then buttons then again texts.
  And also want to edit in same area.
  I can add buttons in <code>UITextview</code> but how do I maintain the sequence of text that i added after button and before any button ?
  Is there any sample code for it ?    </p>
  
  <p>I am adding buttons in UITextView by</p>
  
  <pre><code>UIButton *myButton = [UIButton buttonWithType:UIButtonTypeRoundedRect];
  myButton .frame = CGRectMake(100, myTextView.contentSize.height, 90, 30);
  [myButton setTitle:@"button text" forState:UIControlStateNormal];
  [myTextView addSubview:myButton ];
  </code></pre>
  
  <p>but i can not able to move cursor after this button.</p>