Author Topic: How do i get the current sprite that is in the middle of the scroll view ?  (Read 3485 times)

Sahkan

  • Jr. Member
  • **
  • Thank You
  • -Given: 9
  • -Receive: 0
  • Posts: 74
    • View Profile
Let's say i'v picked a date : a day,month and year. how can i get the centered label via script so i can store the chosen day within a struct or w/e ?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
If you used UICenterOnChild, UICenterOnChild.centeredObject. If you didn't -- math! Look inside the math inside UICenterOnChild for an example.

Sahkan

  • Jr. Member
  • **
  • Thank You
  • -Given: 9
  • -Receive: 0
  • Posts: 74
    • View Profile
Thanks ! I will check it out .