jeudi 30 octobre 2014

How to use gesture to move large image in a view using swift


Vote count:

0




I can able to do pinch zoom using pinch gesture using swift. But after image enlarges, i can't able view the which is out of view. (i.e)can't able to move image around the screen. Can any one help me?


My code:



@IBAction func scaleImage(sender: UIPinchGestureRecognizer) {
sender.view!.transform = CGAffineTransformScale(sender.view!.transform, sender.scale, sender.scale)

sender.scale = 1
}


I need to view full image after zooming it.



asked 44 secs ago







How to use gesture to move large image in a view using swift

Aucun commentaire:

Enregistrer un commentaire