Reputation: 1595
Is there any way to fire a method,when we scroll down from the bottom of a UIWebView ? I have seen many answers but could not find a workable idea :(
Upvotes: 2
Views: 254
Reputation: 36
UIWebView conforms to the UIScrollViewDelegate protocol.
The protocol defines the scrollViewDidScroll:
(look it up here) method. If you implement it and set your object as the delegate of UIWebView you should get notified if the View scrolls. You can then ask the webview for its contentOffset
and determine whether the scroll was upwards or downwards.
Upvotes: 1
Reputation: 21808
I think you should use method scrollViewDidScroll
of UIScrollViewDelegate
Upvotes: 0