代码之家  ›  专栏  ›  技术社区  ›  fuzzygoat

一次性申请地点?

  •  1
  • fuzzygoat  · 技术社区  · 15 年前

    有没有一种方法可以使用cllocationmanager请求一个一次性的位置,相当于说“当我按下这个按钮时,告诉我我在哪里”或者只是打电话的情况

    [locationManager startUpdatingLocation];
    // and implementing: locationManager:didUpdateToLocation:fromLocation:
    [locationManager stopUpdatingLocation];
    
    1 回复  |  直到 15 年前
        1
  •  2
  •   Robert Höglund    15 年前

    CLLocationManager stopUpdating locationManager:didUpdateToLocation:fromLocation: