Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

center and radius are deprecated in iOS 7.0 #36

Open
tarasiadis opened this issue Jun 10, 2014 · 1 comment
Open

center and radius are deprecated in iOS 7.0 #36

tarasiadis opened this issue Jun 10, 2014 · 1 comment

Comments

@tarasiadis
Copy link

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.

@Sam-Spencer
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants