swift - One rotation around the point of IOS? -
when put anchor point set (0, 0) of time, turn, jump first (0.5, 0.5) position , began spin, why, rather directly around anchor point (0, 0) rotating???
self.layer.anchorpoint = cgpointmake(0.18,0.18) uiview.animatewithduration(1.2, animations: { () -> void in self.layer.transform = catransform3dmakeaffinetransform(cgaffinetransformmakerotation(cgfloat(-m_pi/5))) })
Comments
Post a Comment