草庐IT

CLLocationManger

全部标签

iphone - 未调用区域委托(delegate)方法的 CLLocationManger

我有要求,我必须为CLLocation设置radius。我在viewDidLoad方法中编写代码如下:-(void)viewDidLoad{[superviewDidLoad];//Doanyadditionalsetupafterloadingtheview,typicallyfromanib.locationManager=[[CLLocationManageralloc]init];[locationManagersetDelegate:self];[locationManagersetDesiredAccuracy:kCLLocationAccuracyBest];[locat