Search code examples
objective-ccllocation

Get latitude and longitude from CLLocation


I have an CLLocation which is my userLocation, now in another class I have to open the maps app and make a route from the userLocation to another point. But how can I get in the another class the Coordinates of userLocation?


Solution

  • If you wanna need to pass the CLLocation co-ordinates to another class then u can take help of NSUserDefaults

    i.e. [[NSUserDefaults standardDefaults] setObject: forKey:@""]