Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions SDPhotoBrowser/SDPhotoBrowser/SDPhotoBrowser.m
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down