Guest User

Untitled

a guest
Aug 18th, 2018
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. UIWebView: How to tell when part of the HTML is visible?
  2. @property(nonatomic, readonly, retain) UIScrollView *scrollView
  3.  
  4. NSArray *subViews = [NSArray arrayWithArray:[myWebview subviews]];
  5. UIScrollView *webScroller = (UIScrollView *)[subViews objectAtIndex:0];
  6.  
  7. UIScrollView *webScrollView = myWebView.scrollView;
  8. webScrollView.delegate = self;
  9.  
  10. //implement method from delegate..
  11.  
  12. - (void)scrollViewDidScroll:(UIScrollView *)scrollView
  13. {
  14. //Scrolled
  15. }
  16.  
  17. CGPoint offSet = webScrollView.contentOffset;
Add Comment
Please, Sign In to add comment