Nithin M Keloth
Nithin M Keloth

Reputation: 1595

How to fire a method,when we scroll down from a UIWebView?

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

Answers (2)

claas_lange
claas_lange

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

Andrey Chernukha
Andrey Chernukha

Reputation: 21808

I think you should use method scrollViewDidScroll of UIScrollViewDelegate

Upvotes: 0

Related Questions