November 2013
Intermediate to advanced
576 pages
19h 3m
English
The sample app enables the user to add a new favorite place by entering an address in ICFFavoritePlaceViewController. The user can tap Geocode Location Now to get the latitude and longitude, as shown in Figure 2.10.
Figure 2.10 FavoritePlaces sample app: adding a new favorite place.
When the user taps the Geocode Location Now button, the geocodeLocationTouched: method is called. That method begins by concatenating the address information provided by the user into a single string, like “2100 York St, Denver, CO 80205,” to provide to the geocoder.
NSString *geocodeString = @"";if ([self.addressTextField ...
Read now
Unlock full access