- (void)scrollViewDidZoom:(UIScrollView *)aScrollView { CGFloat
offsetX
=
(_scrollView.bounds.size.width
>
_scrollView.contentSize.width)?(_scrollView.bounds.size.width - _scrollView.contentSize.width)/2 : 0.0;
CGFloat
offsetY
=
(_scrollView.bounds.size.height
>
_scrollView.contentSize.height)?(_scrollView.bounds.size.height - _scrollView.contentSize.height)/2 : 0.0;
self.imageView.center
CGPointMake(_scrollView.contentSize.width/2 offsetX,_scrollView.contentSize.height/2 + offsetY);
}
= +
因篇幅问题不能全部显示,请点此查看更多更全内容