话题说明了一切。为什么我在这 2 行收到此错误消息?
NSArray *coordinates = [locationDetails[@"coordinates"] componentsSeparatedByString:@","];
CLLocationDegrees *lat = [coordinates[1] doubleValue]; //here is the red arrow <----
并且将出现此消息:
使用不兼容类型“double”的表达式初始化“CLLocationDegrees *”(又名“double *”)