views:

53

answers:

0

I have custom uiimage views that I want the users to be able to scale and rotate. These images are small and multitouch pinch-to-zoom on the imageview itself isn't feasible. So I thought I can perform pinch-to-zoom on the superview and somehow make the imageview respond to rotation and scaling.

I gathered multitouch information on the superview, made a transformation matrix like in one of those apple examples and passed it to imageView.transform. The subview did react to rotation and scaling, but the center of rotation is on the center of superview instead of center of the imageview.

Anyone knows how I can change the matrix calculation to fix that?