UITextView to be resized with contentsize after pinch gesture of another view
<p>I am facing an issue of resizing UITextView in pinch gesture recognizer method. This gesture recognizer is for another view. I want that textview should also be resized along with that view.</p>

<p>I successfully able to resize UITextView according to requirement. But I have issue with text displayed in textview. After zooming in and zooming out for few times. contents inside UITextView does not come properly (see below image "After zooming in/out"). It decreases content width. I checked content size of UITextView, but it gives same width before resizing and after resizing.</p>

<p>Here, I have set text alignment to center for UITextView. I have also applied contentInset to UIEdgeInsetZero.</p>

<p>Any help will be appreciated.</p>

<p>Before zooming in/out
<img src="http://i.stack.imgur.com/oBqJH.png" alt="Before zooming in/out"></p>

<p>After zooming in/out
 <img src="http://i.stack.imgur.com/Qz8Nx.png" alt="After zooming in/out"></p>
