0
我顯示當前位置爲iPad在地圖視圖此我用下面的代碼iPad上無法找到當前的位置
if ([CLLocationManager locationServicesEnabled])
{
lm = [[CLLocationManager alloc] init];
lm.delegate = self;
lm.desiredAccuracy = kCLLocationAccuracyBest;
lm.distanceFilter = 100.0f;
[lm startUpdatingLocation];
}
,我計算緯度和經度,並傳遞給它的URL作爲
NSString *urlString = [NSString stringWithFormat:@"http://maps.google.com/maps?z=15&daddr=%@@%@,%@&saddr=%@@%@,%@",n,lat_New,lng_New,currentLocation,currentLatt,currentLong];
我沒有收到初始起點的正確方向,並在地圖視圖終點爲iPad。
有什麼替代用於顯示正確的初始和iPad的地圖視圖盯着點? 是否應用商店拒絕這些問題的應用程序,並認爲建議我一些很好的替代方案。
你是什麼意思**正確的初始起點和終點**? – 2012-04-10 07:11:06
起點是ipad公司的起始位置和結束點是在應用 – 2012-04-10 07:47:42
附近距離表示杜您檢查精度,同時接收位置更新?..(例如檢查精度〜5秒的時間範圍內增大。) – 2012-04-10 09:32:14