New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
setInitialPageIndex strange animation if not first image #127
Comments
Hi x2on, can show how to use setInitialPageIndex ? |
I use it like this: NSMutableArray *images = [NSMutableArray arrayWithCapacity:[imageSources count]];
for (id object in imageSources) {
IDMPhoto *image;
if (mode == ImageGalleryModeURL) {
NSURL *url = (NSURL *)object;
image = [IDMPhoto photoWithURL:url];
}
else {
GalleryImage *galleryImage = (GalleryImage *)object;
image = [IDMPhoto photoWithImage:galleryImage.image];
}
[images addObject:image];
}
IDMPhotoBrowser *browser = [[IDMPhotoBrowser alloc] initWithPhotos:images animatedFromView:galleryCell.imageGallery.currentImageView];
[browser setInitialPageIndex:idx];
browser.displayArrowButton = NO;
browser.scaleImage = galleryCell.imageGallery.currentImageView.image;
browser.delegate = self;
[self.navigationController presentViewController:browser animated:YES completion:nil]; |
Any thoughts on this issue? |
@x2on, I don't know if you had solved the issue but for me, I realised it only happens if I use browser.scaleImage before presenting the view. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
if i use
setInitialPageIndex
and opens the Photo Browser the animation is strange.It animates from the first image to the initial page index, also on hiding the browser.
If i open from the first image the animation is fine.
Any ideas?
The text was updated successfully, but these errors were encountered: