Hi I have an app on the appstore. [url removed, login to view]
I am having a problem, all the races and free races start from the same location. Users have to zoom out and move the map over to the current city before they can play. All the races are location specific however they all start [url removed, login to view],[url removed, login to view] Here. even though the games are 100 miles to 1000 miles away. I want it to use the location of the user instead of the location below as indicated in the mapviewcontroller.m file. Ideally I would like to be able to simply change the lines of longitude and latitude to "get longitude from user location" and "get latitude from user location" Or whatever works with the same end result.
Let me know if you have any questions. This is the code that is in my file. Perhaps you can tell me what to do?
//CLLocationManager *locationManager=[[CLLocationManager alloc] init];
// [locationManager startUpdatingLocation]; Activate this line for having GPS tracking working
geoCoder=[[MKReverseGeocoder alloc] initWithCoordinate:[url removed, login to view]];
CLLocationCoordinate2D location2 = [url removed, login to view];
location2.latitude=[url removed, login to view];
location2.longitude=[url removed, login to view];
[mapView setRegion:region animated:TRUE];
// [[url removed, login to view] insertSubview:mapView atIndex:0];