[2015-03-18]关于MWPhotoBrowser在…

在 MWZoomingScrollView.m 下

1) 在此方法下 - (id)initWithPhotoBrowser:(MWPhotoBrowser *)browser: 
加入    self.scrollEnabled = false;

2) 在下面方法- (void)scrollViewWillBeginZooming:(UIScrollView *)scrollView withView:(UIView *)view 中 把  scrollEnabled = YES 
替换成
if (self.zoomScale > 1.0f) { // check if it is zoomed in

self.scrollEnabled = NO;
}
else {
self.scrollEnabled = YES; // reset
}

- (void)scrollViewWillBeginZooming:(UIScrollView *)scrollView withView:(UIView *)view {
//self.scrollEnabled = YES; // reset

if (self.zoomScale > 1.0f) { // check if it is zoomed in
self.scrollEnabled = NO;
}
else {
self.scrollEnabled = YES; // reset
}
[_photoBrowser cancelControlHiding];
}


完美解决此方法。详见https://github.com/mwaterfall/MWPhotoBrowser/issues/309

你可能感兴趣的:(iOS学习笔记)