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

Popular posts from this blog

jquery - How do you format the date used in the popover widget title of FullCalendar? -

Bubble Sort Manually a Linked List in Java -

asp.net mvc - SSO between MVCForum and Umbraco7 -