Author Topic: UIScrollView Scroll to position (or percent)  (Read 2587 times)

znerolnoht

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 5
    • View Profile
UIScrollView Scroll to position (or percent)
« on: April 17, 2016, 05:38:48 PM »
Hi,

I might be missing something obvious but I'd like to scroll a UIScrollView horizontally 50% (so the content is centered) and I'd like to do this without animation. Does anyone know how to do this? I can't find a method that does this.

Thanks for the help,

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: UIScrollView Scroll to position (or percent)
« Reply #1 on: April 19, 2016, 12:56:26 PM »
Just have a look at UICenterOnChild script and what it does inside.