In the calling function I have the following code:
Code:
{
printf("-----*---*-----Distance %f, Lat: %f, Lng: %f", myDistance, myLat, myLng);
printf("\n");
[self drawOnMap:myDistance Lat:myLat Lng:myLng];
}
In the function called:
Code:
-(void)drawOnMap:(float)distance Lat:(float)lat Lng:(float)lng
{
printf("===*==*====Distance %f, Lat: %f, Lng: %f", distance, lat, lng);
printf("\n-----*---*-----\n");
}
But the output is as follows:
-----*---*-----Distance 60.500000, Lat: -33.875900, Lng: 151.206314
===*==*====Distance 0.000000, Lat: 3.222656, Lng: -0.000000
What have I done wrong?