我有以下代码可以转换imageView并在触摸时在其superView中旋转它:overridefunctouchesMoved(touches:NSSet,withEventevent:UIEvent){vartouch:AnyObject?=event.allTouches()?.anyObject()varlocation=touch!.locationInView(touch!.view)vardx:Float=Float(location.x-hsbWheel250ImageView.center.x)vardy:Float=Float(location.y-hsbWheel