标签:
//缩放
- (UIView *)viewForZoomingInScrollView:(UIScrollView *)scrollView
{ //返回要缩放的视图
return self.rv.imV;
}
//
- (void)scrollViewDidScroll:(UIScrollView *)scrollView;
{
//只要视图偏移发生变化,就过来瞧瞧有什么大事发生
// NSLog(@"发生了什么??");
}
//
- (void)scrollViewWillBeginDragging:(UIScrollView *)scrollView
{ //刚拖拽的时候,到这里看看
NSLog(@"What‘s hapeen???");
}
//
-(void)scrollViewDidEndDragging:(UIScrollView *)scrollView willDecelerate:(BOOL)decelerate
{ //拖拽结束,到这看看
NSLog(@"结束了吗???");
}
//
- (void)scrollViewWillBeginDecelerating:(UIScrollView *)scrollView
{ //拖拽完成减速时触发(结束之前由快变慢的过程,到这里看看)
NSLog(@"慢点.....");
}
//
- (void)scrollViewDidEndDecelerating:(UIScrollView *)scrollView
{ //减速结束后触发(由快变慢停下后,到这看看)
NSLog(@"怎么停呢?");
}
//
- (void)scrollViewDidZoom:(UIScrollView *)scrollView
{ //缩放时候触发(缩放过程中,过来看看)
NSLog(@"大了,小了");
}
标签:
原文地址:http://www.cnblogs.com/-ios/p/4672750.html