質問

Using MKMapView setCenterCoordinate: after the orientation changes to landscape will change the zoom level. Even a dummy reset to the existing value will change the zoom. This happens once after every orientation change from portrait to landscape.

Steps:

  1. Hook up MKMapView and CLLocationManager
  2. Call setCenterCoordinate: with last location
  3. Rotate to landscape orientation, pause
  4. Rotate to portrait orientation, pause
  5. Repeat 3 and 4, map will continue to zoom out for each iteration

Or if you want to try it out directly, I have a zipped sample project included in Apple Bug Report ID 16146556 available through Dropbox.

This problem is really affecting the usability of the app, and I would welcome any recommendations or advice. It occurs in real devices and the emulator as well.

役に立ちましたか?

解決

In version 7.1, which has been out for a few days, I have confirmed your sample code works correctly. So the fix is to upgrade to version 7.1!

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top