Open JPlay opened 10 years ago
+1 for this issue!
I can reproduce this issue, but I don't know how to fix it yet. I'm presuming there is an OS limitation around modal view controllers. When the second modal view controller is presented, the first one is probably being removed from view hierarchy.
Anyone manage to fix this yet? I'm getting the same issue.
+1
@JPlay @pranavss11 @sprint84
Temporary solution, In IDMPhotoBrowser.m
move [self performPresentAnimation];
function to - (void)viewWillAppear:(BOOL)animated
- (void)viewWillAppear:(BOOL)animated {
// Update
[self reloadData];
// Super
[super viewWillAppear:animated];
// Status Bar
_statusBarOriginallyHidden = [UIApplication sharedApplication].statusBarHidden;
// Update UI
[self hideControlsAfterDelay];
[self performPresentAnimation];
}
1.create a viewController,and present it. ViewController *vc = [[ViewController alloc] init]; [self presentViewController:vc animated:YES completion:nil];
2.use IDMPhotoBrowser NSArray list = @[[UIImage imageNamed:@"photo1l.jpg"], [UIImage imageNamed:@"photo3l.jpg"], [UIImage imageNamed:@"photo2l.jpg"] ]; NSArray listPhoto = [IDMPhoto photosWithImages:list]; IDMPhotoBrowser *browser = [[IDMPhotoBrowser alloc] initWithPhotos:listPhoto animatedFromView:imageView]; [self presentViewController:browser animated:YES completion:nil];
3.now,when I drag the image,the background is always black.