Author Topic: How to detect when a UIScrollView has scrolled all the way to the bottom?  (Read 2641 times)

holyfuzz

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 1
    • View Profile
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!

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: How to detect when a UIScrollView has scrolled all the way to the bottom?
« Reply #1 on: November 12, 2014, 07:29:42 AM »
Math. Check UIScrollView.UpdateScrollbars() function. It does the math inside.