Get latitude and longitude from CLLocation
-
19-09-2019 - |
Question
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:@""]
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow