Author Topic: UIScrollView - detecting which object is mostly centered  (Read 1333 times)

NateJC

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 4
    • View Profile
UIScrollView - detecting which object is mostly centered
« on: May 21, 2014, 10:50:41 PM »
I have a UIScrollView and I'm also using a UICenterOnChild. As dragging occurs, I would like to execute a function whenever a new UISprite becomes the new object that is *mostly* in the center (ie, the object that would be snapped to using UICenterOnChild if dragging stopped).

I would like to update information outside of the ScrollView based on which object is currently (mostly) centered. Any suggestions?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: UIScrollView - detecting which object is mostly centered
« Reply #1 on: May 22, 2014, 03:24:22 PM »
UICenterOnChild.centeredObject