5

I have a UIScroll view with content in it. If that content overflows, making the scroll view scrollable, I'd like to set the bottom of the view to be a certain color. If it does not, I'd like to set it to a different color.

My issue is, I do not know how to detect if a UIScrollView's content overflows and thus is scrollable.

steventnorris
  • 5,056
  • 20
  • 82
  • 156

1 Answers1

12

Check if the scroll view's contentSize is bigger than its bounds.

paulvs
  • 10,923
  • 3
  • 39
  • 60