diff --git a/SDPhotoBrowser/SDPhotoBrowser/SDPhotoBrowser.m b/SDPhotoBrowser/SDPhotoBrowser/SDPhotoBrowser.m index 0b0953b..53dd609 100755 --- a/SDPhotoBrowser/SDPhotoBrowser/SDPhotoBrowser.m +++ b/SDPhotoBrowser/SDPhotoBrowser/SDPhotoBrowser.m @@ -187,6 +187,10 @@ - (void)photoClick:(UITapGestureRecognizer *)recognizer if (!currentImageView.image) { // 防止 因imageview的image加载失败 导致 崩溃 h = self.bounds.size.height; + }else if (currentImageView.image.size.width==0) { + // 防止 因imageview的image加载失败 导致 崩溃 + h=0; + } tempView.bounds = CGRectMake(0, 0, self.bounds.size.width, h);