I am using mapkit and use thin code
double latitude1;
double longitude1;
@property (assign) double latitude1;
@property (assign) double longitude1;
latitude and longitude both in double type in database, But i recieved error when i write this line:(
CLLocationCoordinate2D theCoordinate;
theCoordinate.latitude = [ classObj.latitude1 doubleValue];
theCoordinate.longitude = [ classObj.longitude1 doubleValue];
this error is occur
“invalid recieve type double”
i have convert in float but it also didnot work..
latitude1 property is already a plain double – you don’t need (and can’t use) doubleValue call with it. Just write:
Or even better