Author Topic: Snap to edge behavior similar to UICenter On Child  (Read 5122 times)

Redd

  • Newbie
  • *
  • Thank You
  • -Given: 5
  • -Receive: 1
  • Posts: 10
    • View Profile
Snap to edge behavior similar to UICenter On Child
« on: December 18, 2014, 06:36:09 PM »
I like how the UICenter On Center work.  Is there something similar that would make an UIDrag Scroll View snap to left or top edge when scrolling?  Thank you for any help you can provide.
« Last Edit: December 18, 2014, 09:23:20 PM by Redd »

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Snap to edge behavior similar to UICenter On Child
« Reply #1 on: December 19, 2014, 07:57:59 AM »
If your children are offset by default, it will be like that:

Scroll view
- UICenterOnChild
-- Offset
--- Child 1
-- Offset
--- Child 2
-- Offset
--- Child 3

Otherwise you will need to create your own version of UICenterOnChild that adds an offset.