Please tell me what is the default map location when it simply add to the view. I added mapview like this
MKMapView *mapView = [[MKMapView alloc] initWithFrame:CGRectMake(0, self.searchBar.frame.size.height, 320, 180)];
mapView.mapType=MKMapTypeStandard;
mapView.delegate=self;
[self.view addSubview:mapView];
what location will show on map ?
Is this according to device coordinates or by other
Thanks
After done so googling and reading apple map doc.
I found the solution the default location is the device local that is International in Settings -> general ->International->ResionFormat-> select your country.
map will focus according to this setting.
I think the system makes a call and Apple's servers return this info.
I've made a little test with simulator (Extra info: I'm in Spain):
Test 1
Test 2 (wihtout turning off internet)
I don't think that Apple's getting user location without consent. It could be a request for default location IP based as a part of operative system.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With