title: How to resize and redraw UITextView on UIScrollView zoom?
body: <p>I have a <code>UIView</code> hierarchy like this <code>UIScrollView</code> -> <code>DrawingView(UIView)</code> -> <code>UITextView</code>. When I zoom <code>UIScrollView</code>, it also scaling the <code>UITextView</code> causing blurred text and big font. I need the same resize frame of <code>UITextView</code> but it should not get blurred and at proper font. </p>
  
  <p>Showing in images what i exactly need.</p>
  
  <p>Before zoom my UITextView should look like :</p>
  
  <p><img src="https://i.stack.imgur.com/NB1NS.png" alt="enter image description here"></p>
  
  <p>When I zoom, its looking like this :</p>
  
  <p><img src="https://i.stack.imgur.com/1S0G6.png" alt="enter image description here"></p>
  
  <p>This is an image where I want <code>UITextView</code> should look like when I zoom/ or max zoom level.</p>
  
  <p><img src="https://i.stack.imgur.com/Z7a1M.png" alt="enter image description here"></p>
  
  <p>Here is my code, Tried each 'TRY' code once but none works.</p>
  
  <pre><code>- (UIView *)viewForZoomingInScrollView:(UIScrollView *)scrollView {
      return self.drawingView;
  }
  
  - (void)scrollViewDidEndZooming:(UIScrollView *)scrollView withView:(UIView *)view atScale:(float)scale
  {
      // TRY 1
      self.textView.bounds = CGRectMake(0, 0, self.textView.frame.size.width*scale, self.textView.frame.size.height*scale);
  
      // TRY 2
      scale *= [[[scrollView window] screen] scale];
      self.textView.contentScaleFactor = scale;
  
      // TRY 3
      CGRect frame = self.textView.frame;
      frame.size.width = frame.size.width * scale;
      frame.size.height = frame.size.height * scale;
      self.textView.frame = frame;
      self.textView.contentScaleFactor = 1.0f;
  
      // TRY 4
      self.textView.transform = CGAffineTransformScale(CGAffineTransformIdentity, scale, scale);
  
      // TRY 5
      scaleTracker *= scale;
      [self.drawingView setTransform:CGAffineTransformIdentity];
      self.drawingView.frame = CGRectMake((int)self.drawingView.frame.origin.x,
                                (int)self.drawingView.frame.origin.y,
                                (int)(self.drawingView.frame.size.width * scaleTracker),
                                (int)(self.drawingView.frame.size.height * scaleTracker));
  
      NSLog(@"TextView Frame : %@",NSStringFromCGRect(self.textView.frame));
      NSLog(@"DrawingView Frame : %@",NSStringFromCGRect(self.drawingView.frame));
  }
  </code></pre>