我使用这个代码来获得GPS数据GPS获取经度和海拔分别
- (void)locationUpdate:(CLLocation *)location {
locLabel.text = [location description];
}
结果看起来像这样
< 38.76856432,11.99454301> +/-100.00米(速度......)
当我特里此我有一个错误,
- (void)locationUpdate:(CLLocation *)location {
locLabel.text = [location altitude];}
错误
Assigng到 “的NSString *” 从不兼容的类型CLLocationDistance (又名双)
我想经度太
谢谢你,它是无效的! – user567