Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
didupdateheading で地図を回転させました。そして、MKUserFollowWithHeading を設定します。デバイスを移動すると、ユーザーは常に北を指します。停止ボタンでマップの回転を、既に回転した位置まで停止したい。
そんなことがあるものか?
地図が回転した角度を取る
heading = newHeading.trueHeading;
停止ボタンメソッドを次のように実装して、停止ボタンでマップを変換します。
[mapView setTransform:CGAffineTransformMakeRotation(heading * M_PI /180.0f);