userlocation

    3熱度

    1回答

    我沒有使用它來獲取駕車路線或類似信息。我有一些註釋,並且當用戶在其中一個附近時需要觸發器,所以我可以提醒用戶。 看起來didUpdateToLocation每startUpdatingLocation調用只調用一次?至少當我在該方法中使用NSLog時,我只能在控制檯中獲得一行。不,我沒有用iphone走動。 所以:設置userLocation的連續監測並獲得「回調」(3-4秒過去或用戶移動了10米

    2熱度

    2回答

    我有一個應用程序與地圖,並希望放大到當前位置,當它更新。 我使用-(void)mapView:(MKMapView *)mapView didUpdateUserLocation:(MKUserLocation *)userLocation委託方法知道用戶位置何時更新。 現在模擬器方法正在被調用,因爲它應該。但是當我在設備上測試它(iphone 2g)時,位置在地圖上更新,但「didUpdateU

    0熱度

    2回答

    我使用以下條件來確保我獲得的位置具有足夠的準確性,在我的情況下爲kCLLocationAccuracyBest。但問題是我仍然得到不準確的位置。 // Filter out nil locations if(!newLocation) return; // Make sure that the location returned has the desired accuracy