uitableview - How to manually trigger "Scroll to top" for active scrollview component on iOS? -
i know how manually scroll uitableview
or uiscrollview
top.
i trying replicate behaviour of tapping uistatusbar
automatically finds active view can scrolled top , scrolls top.
so, want same, without knowing uiscrollview
subclass active , can scrolled top.
is there public nsnotification
this, or other public method?
[self.scrollview setcontentoffset:cgpointzero animated:yes];
update should traverse view hierarchy or responder chain , first item of class uiscrollview
responds yes
scrollstotop
(or if delegate implements scrollviewshouldscrolltotop:
, returns yes
) candidate automatic scrolling
Comments
Post a Comment