TransitApp/SVGeocoder

center and radius are deprecated in iOS 7.0

tarasiadis opened this issue · 1 comments

I have update to iOS 7 and xCode set warnings at SVGeocoder.m at

  • (NSString*)createBoundsStringFromRegion:(CLRegion *)region {
    MKCoordinateRegion coordinateRegion = MKCoordinateRegionMakeWithDistance(region.center, region.radius, region.radius);

Is something that could fix that?
Thanks.

Change the CLRegion parameter to CLCircularRegion in the method. That is the newer class which Apple uses in iOS 7+ and it should clear the deprecation warnings.