Skip to content
This repository was archived by the owner on Mar 31, 2021. It is now read-only.

Some changes for real scrolling to initialIndex and using several galleries#18

Open
Bogdan-Stasjuk wants to merge 4 commits intoethan605:masterfrom
Bogdan-Stasjuk:development
Open

Some changes for real scrolling to initialIndex and using several galleries#18
Bogdan-Stasjuk wants to merge 4 commits intoethan605:masterfrom
Bogdan-Stasjuk:development

Conversation

@Bogdan-Stasjuk
Copy link
Copy Markdown
Contributor

When we using list of galleries it is handy to have public link on UIPhotoGalleryView's instance for identify concrete gallery in UIPhotoGalleryDataSource methods.

For real scrolling to initialIndex in UIPhotoGalleryViewController I added call of setInitialIndex:animated: from viewDidAppear:.

After poping UIPhotoGalleryViewController's instance I see previous image from vPhotoGallery above current viewController about a second in case of images count is more than 1 and current index is more than 0. To solve this issue I added "self.vPhotoGallery.hidden = YES" in "viewWillDisappear:".

…y property UIPhotoGalleryView *vPhotoGallery. Public vPhotoGallery is required when using several galleries for identify concrete gallery in UIPhotoGalleryDataSource methods.
…nimated". Removed method - (void)setInitialIndex:(NSInteger)initialIndex. Added UIViewController's method “viewDidAppear:” with call of setInitialIndex:animated: from UIPhotoGalleryView for real scrolling to initial index.

Added "self.vPhotoGallery.hidden = YES" in "viewWillDisappear:" for quick disappearance.
…scrolling to initialIndex when setupMainScrollView is called from layoutSubviews.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant