Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: holyfuzz on November 11, 2014, 02:32:10 PM

Title: How to detect when a UIScrollView has scrolled all the way to the bottom?
Post by: holyfuzz on November 11, 2014, 02:32:10 PM
Hello,

How do I detect when a UIScrollView has been scrolled all the way to the bottom of its contents?

My particular use case is that I would like to show a "down arrow" graphic when the player is able to scroll further down in the scroll view, since the UI has no actually scroll bars to indicate when it can be scrolled.

Thanks!
Title: Re: How to detect when a UIScrollView has scrolled all the way to the bottom?
Post by: ArenMook on November 12, 2014, 07:29:42 AM
Math. Check UIScrollView.UpdateScrollbars() function. It does the math inside.