0
在將NSString轉換爲double值時出現以下錯誤。將nsstring轉換爲ios中的double值時出現錯誤
NSString *latValue = [retrieving valueForKey:@"lat"];
double db = [latValue doubleValue];
NSLog(@"db valiue is %f",db);
檢索是我的NSDictionary。 錯誤:
* Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSArrayI doubleValue]: unrecognized selector sent to instance 0x8e83860.
請幫