Because I have to work for map in the iOS 6 and older version. I’m looking for the source code example that can load both Google map and Apple map into map view depend on OS version. Is there anyway to achieve that?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Just add the
MKMapViewto your views and it will handle it automatically. On iOS < 6, it will load and display the old google maps, on iOS >= 6 it will display the new Apple maps. The API itself is the same for both versions, so don’t worry about that.