but failed.
Then I found the solution that works for me:
- set the webV to hide its indicator and set the scroll delegate
webV.scrollView.delegate = self; [webV.scrollView setShowsHorizontalScrollIndicator:NO]; - add the delegate method:
-(void)scrollViewDidScroll:(UIScrollView *)scrollView
{
if (scrollView.contentOffset.x > 0) {
scrollView.contentOffset = CGPointMake(0, scrollView.contentOffset.y);
}
}
{
if (scrollView.contentOffset.x > 0) {
scrollView.contentOffset = CGPointMake(0, scrollView.contentOffset.y);
}
}
No comments:
Post a Comment