Full Screen MKMapView centerCoordinate not actual center

Originator:anthony.r.dipasquale
Number:rdar://16654851 Date Originated:4/17/2014
Status:Open Resolved:
Product:iOS SDK Product Version:iOS 7+
Classification:iOS SDK Reproducible:Always
 
Summary:
When there is an MKMapView placed inside a UIView and it is under the status bar and/or navigation bar, the centerCoordinate property returns the centerCoordinate as if the map didn't extend under the status bar and/or navigation bar.  The center property of the MKMapView returns the correct screen center and when calling convertPoint:toCoordinateFromView:, the correct center coordinate is returned but it is different than the centerCoordinate property by half the height of the status bar and/or navigation bar.

Steps to Reproduce:
1. Create a new project.
2. Add a MKMapView to the main UIView and have it's frame take the full screen.
3. Wire up the MKMapView to the parent UIViewController.
4. On viewDidLoad, NSLog the centerCoordinate property of the MKMapView and NSLog the coordinate received from calling convertPoint:toCoordinateFromView: passing it the center property of the map and the map itself.

Expected Results:
The 2 coordinates logged to the console should be the same.

Actual Results:
The 2 coordinates logged to the console are different.

Version:
iOS 7.1

Notes:


Configuration:


Attachments:

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!