IPhone UITextView - how do you know when the text you add is missing

I have a UITextView that I add texts from time to time, but I cannot find an API that tells me if the text I am adding is out of sight or not, so I can send a scrollToRange message to the UITextView, Is there a way to do this?

0


a source to share


1 answer


Check content size every time you add text



UITextView *textView;
    if(textView.contentSize.height > textView.frame.size.height)
    {
        //your text is lager then view
    }

      

+1


a source







All Articles