Skip to content
This repository has been archived by the owner on Apr 8, 2023. It is now read-only.

Storyboard approach causes the entire navigation controller to be dismissed #17

Open
crizzis opened this issue Oct 3, 2016 · 1 comment

Comments

@crizzis
Copy link

crizzis commented Oct 3, 2016

The documentation fails to mention that when using storyboards, the LocationPicker controller should be embedded in its own navigation controller as well if 'Done' and 'Cancel' buttons are used. Otherwise, the 'parent' navigation controller is dismissed due to the call to dismissViewControllerAnimated.

Alternatively, the code could check whether LocationPicker is the root view controller and if not, call navigationController.popViewControllerAnimated instead.

@jaimeagudo
Copy link

Add it to the docs for now mate 👍

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

No branches or pull requests

2 participants