I am trying to build an app that supports variable size text box depending on the content. The size of the UITextView should increase up to 4 lines and then activate the scrolling.
I am not able to get the number of lines when the text is being entered.
Please suggest me some way to do that. Any sample code snippet would be highly appreciated.
Thanks in advance!!
I tried one temporary solution to this problem. One can add the following piece of code in -
(void)textViewDidChange:(UITextView *)textView
method of your view controller and change the delegate to the file owner in IB.Hope this helps. If any better solutions kindly help out.
Thanks