Skip to content

Commit

Permalink
iPad などでサムネイルが表示されない不具合を修正しました
Browse files Browse the repository at this point in the history
  • Loading branch information
mironal committed May 20, 2016
1 parent 002bb65 commit d3cfa3d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions QBImagePicker/QBAlbumsViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(N
contentMode:PHImageContentModeAspectFill
options:nil
resultHandler:^(UIImage *result, NSDictionary *info) {
if (cell.tag == indexPath.row) {
if (result && cell.tag == indexPath.row) {
cell.imageView3.image = result;
}
}];
Expand All @@ -323,7 +323,7 @@ - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(N
contentMode:PHImageContentModeAspectFill
options:nil
resultHandler:^(UIImage *result, NSDictionary *info) {
if (cell.tag == indexPath.row) {
if (result && cell.tag == indexPath.row) {
cell.imageView2.image = result;
}
}];
Expand All @@ -337,7 +337,7 @@ - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(N
contentMode:PHImageContentModeAspectFill
options:nil
resultHandler:^(UIImage *result, NSDictionary *info) {
if (cell.tag == indexPath.row) {
if (result && cell.tag == indexPath.row) {
cell.imageView1.image = result;
}
}];
Expand Down
2 changes: 1 addition & 1 deletion QBImagePicker/QBAssetsViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -457,7 +457,7 @@ - (UICollectionViewCell *)collectionView:(UICollectionView *)collectionView cell
contentMode:PHImageContentModeAspectFill
options:nil
resultHandler:^(UIImage *result, NSDictionary *info) {
if (cell.tag == indexPath.item) {
if (result && cell.tag == indexPath.item) {
cell.imageView.image = result;
}
}];
Expand Down

0 comments on commit d3cfa3d

Please sign in to comment.