kelly
kelly

Reputation: 23

How do I know when a user has reached the end of the text in UITextView

My users are reading readonly text in a UITextView. When they have finished reading a selection and have scrolled to the bottom, I would like to be able to display a Completed Reading button that animates up from the bottom. How can I detect when the user has scrolled to the end of the text?

Upvotes: 1

Views: 415

Answers (1)

nikhil84
nikhil84

Reputation: 3207

Hey just add UIScrollViewDelegate and this provide's below method that would be called as scroll end reaches.

- (void)scrollViewDidEndDecelerating:(UIScrollView *)scrollView;

So give it a try and let me know if anything.

Upvotes: 2

Related Questions