I am working on puzzle games and let me rotate the puzzle piece to The first method I have tried to use in two different ways is: There are problems with this that the piece is not rotating in the This is my console output: The problem with this method is that after completing the rotation, it is rolling out my How would I rotate the puzzle piece with animation without these problems? Try Where you can define the degree tetheradien 90 degrees angle Need on every dual taps
[UIView startup permissions: @ "to rotate" reference: zero]; [UIView Set Animation Duration: 0.5]; Self.transform = CFE regenerationMarketation (90); [UIView commitAnimations];
90 ; It rotates around
100 degrees, and it is amending the frame of the animation puzzle piece
UIView .
CABasicAnimation * spinAnimation = [with CABasic animation animation: @ "Transformation. Spin animation.Tavaluos = [NSNumber Number: Flat: 1]; [Self Learner Ad Animation: For Spin Animation: @ "Spin Animation"];
UIView in its previous state.
[UIView startAnimations: @ "rotate" context : Zero]; [UIView Set Animation Duration: 0.5]; Self.transform = Cegiphentransfermarmatocotation (degree orradia (90)); [UIView commitAnimations];
#define Degree ToRadians (x) ((x) * M_PI / 180.0)
Comments
Post a Comment