//__zHeight ----> [[UIScreen mainScreen]bounds].size.height
//__zWidth ----> [[UIScreen mainScreen]bounds].size.width
-(void)creatWebV
{
UIWebView* WebV = [[UIWebView alloc]init];
WebV.backgroundColor=[UIColor clearColor];
WebV.frame = CGRectMake(0, 64, __zWidth, __zHeight-64);
//WebV.delegate = self;
[self.view addSubview:WebV];
WebV.scrollView.delegate = self;
}
...........
#pragma mark - scrollView协议
-(void)scrollViewDidEndDecelerating:(UIScrollView *)scrollView
{
//NSLog(@"====%f=====%f =====%f",scrollView.contentOffset.y , scrollView.contentSize.height,__zHeight);
if (scrollView.contentSize.height - scrollView.contentOffset.y == __zHeight-64.) {
................
}
iOS-判断webView是否滑动到底部
最新推荐文章于 2022-11-06 15:29:31 发布