Skip to content
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

It automatically removes the parent view controller? #52

Open
ad184hl opened this issue Nov 11, 2018 · 1 comment
Open

It automatically removes the parent view controller? #52

ad184hl opened this issue Nov 11, 2018 · 1 comment

Comments

@ad184hl
Copy link

ad184hl commented Nov 11, 2018

I have a RootViewController which is a UITabBarController;
then I have a NavigationController in this RootViewController;
after that I use self.navigationController?.pushViewController(vc, animated: true) to add a vc: CustomViewController in the NavigationController

Now I have below standard code to call this package in the vc: CustomViewController

let fileBrowser = FileBrowser(initialPath: documentsURL)
present(fileBrowser, animated: true, completion: nil)
fileBrowser.didSelectFile = { (file: FBFile) -> Void in
    // things I do here...
}

However, after I select file and did those things there.
The vc: CustomViewController is removed!
It directly shows the NavigationController level.

Anyone knows how to fix this? I still need to stay in the vc: CustomViewController.

@ad184hl
Copy link
Author

ad184hl commented Nov 12, 2018

I find an alternative method.

In case someone needs it, please refer the Apple documentation about UIDocumentPickerViewController and UIDocumentBrowserViewController.

Much easier to use and control with native support.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant