How can i use a variable created in a objective c Void function?
Posted
by James
on Stack Overflow
See other posts from Stack Overflow
or by James
Published on 2010-04-23T17:19:30Z
Indexed on
2010/04/23
17:23 UTC
Read the original article
Hit count: 175
Im trying to get the lat and long values generated in a void function and use them within another function. Any help grateful.
(void)locationManager:(CLLocationManager *)manager didUpdateToLocation:(CLLocation *)newLocation fromLocation:(CLLocation *)oldLocation { float latDeg = newLocation.coordinate.latitude; NSLog(@"Lat: %g", latDeg);
float longDeg = newLocation.coordinate.longitude; NSLog(@"Lat: %g", longDeg); }
I want to use the latDeg and longDeg variables.
© Stack Overflow or respective owner