However, another problem is that the animation duration is not in sync with the
rotation animation duration. Temporarily setting the proper duration in willRotateToInterfaceOrientation:duration: and reseting it to the default in didRotateFromInterfaceOrientation is a workaround, but I think the problem is that the animation duration is used for both the animation of the selection and the path of the whole layer. It should only be used for the selection and the layer animation should be somehow in sync with whatever animation is currently occuring, but I couldn't figure out a proper fix.
The animation of the frame when autorotating is broken.
AFAIK the problem is due to all animations being removed in
drawPathsFromPosition
. Removing both lines re-enables the expected smooth transition of the frame.However, another problem is that the animation duration is not in sync with the rotation animation duration. Temporarily setting the proper duration in
willRotateToInterfaceOrientation:duration:
and reseting it to the default indidRotateFromInterfaceOrientation
is a workaround, but I think the problem is that the animation duration is used for both the animation of the selection and the path of the whole layer. It should only be used for the selection and the layer animation should be somehow in sync with whatever animation is currently occuring, but I couldn't figure out a proper fix.