LocationPicker icon indicating copy to clipboard operation
LocationPicker copied to clipboard

Storyboard approach causes the entire navigation controller to be dismissed

Open crizzis opened this issue 8 years ago • 1 comments

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.

crizzis avatar Oct 03 '16 19:10 crizzis

Add it to the docs for now mate 👍

jaimeagudo avatar Dec 02 '16 12:12 jaimeagudo