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);