Calling a method when UIWebView scrolls

后端 未结 4 666
天涯浪人
天涯浪人 2020-12-11 11:09

I have a UIWebView that contains a lot of text content. I need to be able to get the location of the UIWebView every time it moves. I am using this code to get the point:

4条回答
  •  再見小時候
    2020-12-11 11:11

    I believe that if your header lists your VC as a UIScrollViewDelegate, you can use the -(void)scrollViewDidScroll:(UIScrollView *)scrollView method to find out when it scrolls.

提交回复
热议问题