NSImageView is hoping when from the location when trying to rotate. How to stop it?
I am rotating an NSImageView from its center which is working perfectly however when I start the animation the NSImageView hops from its location to a random location. I do not know why is it happening. Please help. I am elaborating how I am doing it all. Also, I am providing a Github link so that you may run it if you want. github project link Code: // on button press animation will be started -(void)buttonPressed:(id)sender{ // setting the anchor point of the view _img.layer.anchorPoint = CGPointMake(0.5f, 0.5f); // calling the animation function [self startRefreshAnimation]; } // in order