// 获取当前所在的城市名
        CLGeocoder *reverseGeocoder=[[CLGeocoder alloc]  init];
        [reverseGeocoder reverseGeocodeLocation:newLocation completionHandler:^(NSArray *array, NSError *error)
         {
             CLPlacemark *placeMark = [array lastObject];
             if (placeMark != nil)
             {
                 NSString *CityName = [placeMark.addressDictionary objectForKey:@"City"];
                 NSLog(@"城市名:%@",userCityName);
             }
             
         }];

 

相关文章:

  • 2021-11-14
  • 2021-12-31
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-01
  • 2022-12-23
  • 2022-02-03
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-29
相关资源
相似解决方案