Reputation: 239
I want to get current position of control in uiscrollview, after uiscrollview scrolled by some value.
Upvotes: 1
Views: 3383
Reputation: 2538
The position of your control in scrollview does not actually change with scrolling. So:
yourSubview.frame
is always fixed. You can check how much of the content is scrolled in scrollview by looking at: scrollview.contentOffset
the contentOffset as you might guess starts default at CGPoint : (0,0) After you scroll this value gets updated accordingly.
Upvotes: 6