获取当前位置
|
说我想创建一个函数
-(void)setCurrentLocationasAnchor
{
//[self.locationManager startUpdatingLocation];
}
它的工作是在当前位置设置“ 1”。
我该怎么做?
我唯一能想到的就是做[self.locationManager startUpdatingLocation];
,然后等到委托
- (void)locationManager:(CLLocationManager *)manager
didUpdateToLocation:(CLLocation *)newLocation fromLocation:(CLLocation *)oldLocation
叫做。
如何在一个功能中执行此操作?
没有找到相关结果
已邀请:
1 个回复
告耸