This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@protocol KmlDownloaderProtocol <NSObject> | |
- (void) downloadFileFrom:(NSString*)urlString isAsyncDownload:(BOOL)isAsync; | |
- (NSURL*) urlForKmlFile; | |
@end | |
@interface KmlDownloader : NSObject <KmlDownloaderProtocol> | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@interface NSString (Extension) | |
- (BOOL) isAnEmail; | |
- (BOOL) isNumeric; | |
@end | |
@implementation NSString (Extension) | |
/** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (IBAction) didEnterSearchTerm:(id)sender { | |
if ([self.searchTxt.text length] == 0) return; | |
[self displayLoadingViewAndDisableUI]; | |
// contact Apple for geocode | |
CLGeocoder *geoCoder = [[CLGeocoder alloc] init]; | |
// User enters a search term (e.g. springfield united states of america) and Apple's server responds with an array of placemarks that | |
// match the entered search term. |