摘要: 转载自:http://www.cocoachina.com/bbs/read.php?tid-5845.html首先头文件应继承CLLocationManagerDelegate.并:#import <CoreLocation/CoreLocation.h>响应事件中写如下代码:CLLocationManager *_locManager = [[CLLocationManager alloc] init];[_locManager setDelegate:self];[_locManager setDesiredAccuracy:kCLLocationAccuracyBest]; 阅读全文