Im trying to assign a value to a double, using the following code:
double distanceFormat = [self.runsArray[indexPath.row] valueForKey:@"runDistance"];
But I keep getting the following error:
Initialising 'double' with an expression of incompatible type 'id'
However, I know the value is a double! Is there a way to do this?
Could you try with:
If you’re sure it is double I think it would work.