title: Add more button at the end of text inside UITextView Objective-C?
body: <p>I am trying to do something similar to the one in this link <a href="http://www.oracle.com/webfolder/ux/mobile/pattern/img/expand-collpase-description.png" rel="nofollow">http://www.oracle.com/webfolder/ux/mobile/pattern/img/expand-collpase-description.png</a></p>
  
  <p>Expanding the content inside a UITextView when clicking the button 'more'. I am creating the button in my viewDidLoad like the below </p>
  
  <pre><code>UIButton *button = [UIButton buttonWithType:UIButtonTypeRoundedRect];
  [button setTitle:@"more" forState:UIControlStateNormal];
  [self.detailPriceView addSubview:button];
  </code></pre>
  
  <p>I am setting the frame of the button inside the UITextView after loading the data from PFQuery </p>
  
  <pre><code>PFQuery *query = [PFQuery queryWithClassName:self.restaurantName];
      [query whereKey:@"ItemName" equalTo:self.item_name];
  
      [query getFirstObjectInBackgroundWithBlock:^(PFObject *itemDataObj, NSError *error) {
          if (!error) {
  
              self.detailPriceView.text = [itemDataObj objectForKey:@"PriceDetail"];
  
              self.detailPriceView.text = [self.detailPriceView.text substringToIndex:40];
  
              [button setFrame:self.detailPriceView.frame];
  }
  }];
  </code></pre>
  
  <p>How to add more button inside UITextView at the end of the text ? Also i created a constraint to increase it's height when the more button is clicked, but i'm unable to increase the constraint's height beyond some threshold size.</p>