title: textview inside a scrollview ios
body: <p>I am new in IOS programming, I have a tableview, when I Select an item in the table pulls up a detail view. The detail view has title, picture, and at the bottom a textview. All those items are inside a scrollview. I want the whole page to scroll not just the text. The problem is that the textview is scrollable, so I have 2 scrolls, one for the main scroll of the view, and the second one is for the text, what I need is to combine the two scrolls, it means I want when I scroll the view, the text immediately scrolls with it.</p>
  
  <p>this is a screenshot about the view:</p>
  
  <p><img src="https://i.stack.imgur.com/wccfG.png" alt="enter image description here"></p>
  
  <p>and the scrolling is disabled:</p>
  
  <p><img src="https://i.stack.imgur.com/OBOda.png" alt="enter image description here"></p>
  
  <p>this is after updating the height constraint</p>
  
  <p><img src="https://i.stack.imgur.com/5lIXe.png" alt="enter image description here"></p>
  
  <p>this is a screenshot of the scrollview properties</p>
  
  <p><img src="https://i.stack.imgur.com/XVzAi.png" alt="enter image description here"></p>
  
  <p>the code is:</p>
  
  <pre><code>        NSString *text =[[jsonResults objectAtIndex:0] objectForKey:@"content"];
  
      CGSize textSize = [text sizeWithFont:[UIFont systemFontOfSize:14]
                         constrainedToSize:CGSizeMake(300, 5000) lineBreakMode:NSLineBreakByCharWrapping];
  
      [self.detailTextView setFrame:CGRectMake(self.detailTextView.frame.origin.x,self.detailTextView.frame.origin.y,textSize.width,textSize.height)];
  
      [self.detailTextView setText:text];
  scroll.ContentSize=CGSizeMake(320,1000);
  </code></pre>
  
  <p>Thank You alot,</p>