I have seen this effect in 2 applications and I REALLY want to find how to do this.
The animation is in the UIBarButtonItem and is for image only. The image is a + symbol and it rotates to X.
If you want to see the effect, you need to start a conversation with someone, and next to the text input is the + button for images and emoji. Or, for example, a video about the effect in another application, after clicking the bar button, you see that it rotates to X, http://www.youtube.com/watch?v=S8JW7euuNMo .
I figured out how to do this, but only on UIImageView, I have to turn off all autoresist, and the view should be centered, and then apply the rotation transform to it. I tried many ways to try to make it work in the bar element, and so far the best way is to add an instance of the image, set it up and set the view mode to the center and auto-detect, and then use this image for custom View Positions. But when I do this, the effect works, except that he does it, the image will go a little to the side, and will not stay where it already is. Ive tried to get the center before the animation and set it during the animation, but it does nothing.
source share