watsonbox / ios_google_places_autocomplete

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

To import this code to new project it shows error. #1

Closed Saravana181187 closed 9 years ago

Saravana181187 commented 9 years ago

gpaViewController.placeDelegate = self

In this line i have error "type viewcontroller does not conform to protocol googleplacesautocompletedelegate".

How to fix it and what is the solution.

Rogog commented 9 years ago

You need to do the following:

In your ViewController.swift file change the following:

extension ViewController: GooglePlacesAutocompleteDelegate { func placeSelected(place: Place) { println(place.description) println(place.id) }

to

extension ENTERCLASSNAMEHERE: GooglePlacesAutocompleteDelegate { func placeSelected(place: Place) { println(place.description) println(place.id) }

Saravana181187 commented 9 years ago

It is also not Worked for me.

Saravana181187 commented 9 years ago

Suppose can i copy the Xib into Storyboard it will work or not?