Author Topic: Snap UILabel to the top of ScrollView  (Read 1960 times)

CarlosMassiah

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 10
    • View Profile
Snap UILabel to the top of ScrollView
« on: May 30, 2014, 10:34:36 AM »
How do I snap a widget or a UILabel to the top of a ScrollView?
Effectively I want to do what RestrictWithinBounds does, but that causes an error when I call it.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Snap UILabel to the top of ScrollView
« Reply #1 on: May 30, 2014, 03:22:39 PM »
UIScrollView.ResetPosition(), assuming you set the scroll view's origin.