用百度地圖api定位,拿到的經緯度一直是0,程式碼如下
BMKLocationService *locationService = [[BMKLocationService alloc]init]; locationService.delegate = self; [locationService startUserLocationService]; BMKUserLocation *location = locationService.userLocation;
ringa_lee
ringa_lee