ios - CGAffineTransform - Compensate for an upper left transform rotate -


i need apply translation transformation compensate rectangular view being rotated around (0,0), original origin of view 0,0.

the end result should make appear view transformed around center point.

cgaffinetransform newtransform = cgaffinetransformidentity; newtransform = cgaffinetransformrotate(newtransform, angle); newtransform = cgaffinetransformtranslate(newtransform,?,?); 


Comments

Popular posts from this blog

hibernate - How to load global settings frequently used in application in Java -

python 3.x - Mapping specific letters onto a list of words -

objective c - Ownership modifiers with manual reference counting -