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
Cant exit from gallery after showing a preview of selected Image? #27
Comments
@jaisan123 Hi, |
thank you sir,for your response.
but when i tried to present or push to my imagePreView vc without using
appDelegate.window?.rootViewController = cont ,its showing
Warning: Attempt to present <xxxx.FilterAndEdit: 0x7fe67856d840> on
<xxxx.uploadTab: 0x7fe67851cb90> whose view is not in the window hierarchy!
this warning only.just cant move to my new image preview vc.i trying to
make something like instagram's same upload section
i believe you can help me sir.
…On Fri, May 26, 2017 at 4:42 PM, Khoa Pham ***@***.***> wrote:
@jaisan123 <https://github.com/jaisan123> Hi, appDelegate.window?.rootViewController
= cont is not the recommended way to show a view controller
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#27 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AZd3sj_eJBHdjYbqvJl81wwuG9YMjGWjks5r9rONgaJpZM4Nnc5I>
.
--
*Thanks & Regards,*
*Jaisan Mathew*
*Nesote Technologies Pvt Ltd.*
|
@jaisan123 can you show me the updated code? Also you can take a look at https://github.com/hyperoslo/Gallery/blob/master/Example/GalleryDemo/GalleryDemo/Sources/ViewController.swift to check if you do anything wrong |
updated code is like this sir.
|
@jaisan123 Hi, have you taken a look at the example I gave? Can you just dismiss func galleryController(_ controller: GalleryController, didSelectImages images: [UIImage]) {
controller.dismiss(animated: true, completion: nil)
} |
ya..i did that step also..but still the problem persists. |
@jaisan123 Hi, without seeing the full picture, it's hard for me to tell. It would be great if you can minimise the use case, and send a sample project that can replicate this issue |
@onmyway133 ,thanks for the reply after months.I fixed it already. |
@jaisan123 Hi, glad that you found the solution |
First of all,thanks for this amazing plugin.
Actually i want to select only one image and on done button action ,show a preview of that image in a new viewController.
i used this code to show it within the did selectImages delegate method,
`func galleryController(_ controller: GalleryController, didSelectImages images: [UIImage])
{
it show another viewController with the selected image,And on back button action on that viewController,its moving back to Gallery also.. Then comes the problem,After coming back from previewVC,the close button of gallery is not working.it pops the gallery again and again. i using this code in galleryControllerDidCancel delegate method.
func galleryControllerDidCancel(_ controller: GalleryController){
`
Im opening this gallery on tapping a tabbar under the screen.Also i getting a warning like
Please help me to solve this.
The text was updated successfully, but these errors were encountered: