watsonbox / ios_google_places_autocomplete

Google Places address entry for iOS (Swift)
MIT License
269 stars 72 forks source link

placeViewClosed keeps the view to reappear #23

Closed KarimFikani closed 9 years ago

KarimFikani commented 9 years ago

Every time I tap on the 'X' button the view shows up again because "presentViewController(gpaViewController, animated: false, completion: nil)" is in "viewDidAppear". So every time "dismissViewControllerAnimated(true, completion: nil)" is called the same view controller loads again.

How can I make it jump to a new ViewController?

watsonbox commented 9 years ago

Maybe take a look at this issue. I just use viewDidAppear in the example for convenience but you could call presentViewController anywhere.