你好堆叠专家!
我的问题:如何从 CLLocationDegrees 值生成字符串?
失败的尝试:
1. NSLog(@"Value: %f", currentLocation.coordinate.latitude); //Tried with all NSLog specifiers.
2. NSNumber *tmp = [[NSNumber alloc] initWithDouble:currentLocation.coordinate.latitude];
3. NSString *tmp = [[NSString alloc] initWithFormat:@"%@", currentLocation.coordinate.latitude];
当我查看 CLLocationDegrees 的定义时,它清楚地表明这是一个双精度:
typedef double CLLocationDegrees;
我在这里想念什么?这让我发疯了......请帮助拯救我的心灵!
提前致谢并致以最诚挚的问候。//Abeansits