Skip to content

Commit

Permalink
#160 Fix issue of showing blank screen with defaultAssetCollection se…
Browse files Browse the repository at this point in the history
…t and form sheet presentation style
  • Loading branch information
1and2papa committed Feb 24, 2016
1 parent dd5aacf commit dfc8218
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CTAssetsPickerController/CTAssetCollectionViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -512,7 +512,7 @@ - (void)showDefaultAssetCollection
UINavigationController *nav = [[UINavigationController alloc] initWithRootViewController:vc];
nav.delegate = (id<UINavigationControllerDelegate>)self.picker;

[self.picker setShouldCollapseDetailViewController:NO];
[self.picker setShouldCollapseDetailViewController:(self.picker.modalPresentationStyle == UIModalPresentationFormSheet)];
[self.splitViewController showDetailViewController:nav sender:nil];

NSIndexPath *indexPath = [self indexPathForAssetCollection:self.defaultAssetCollection];
Expand Down

0 comments on commit dfc8218

Please sign in to comment.