I am creating an app where when a user taps on a button (an object in the room), I would like the UIViewController to zoom closer to that button upon an IBAction. I would like this to be similar to the pinch zoom but when the user taps on a button.

Help on this would be much appreciated as I cannot find much on the internet, it just comes up with 'can't drag and drop in Xcode while zooming' etc.

有帮助吗?

解决方案

if I were you, I would really consider to use CGAffineTransform to achieve that custom zoom effect. you will find more about the Quartz2D programming in the Apple Docs.

that would my idea / suggestion for you.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top