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