开发者

iPad context rotates towards original orientation when is scaled with pinch gesture

开发者 https://www.devze.com 2023-02-26 22:55 出处:网络
I\'m trying to make a user friendly pdf reader. I\'ve assigned a pinch gesture to scale the PDF document. When I change orientation to Landscape , it displays fine. When I start pinching - PDF page ro

I'm trying to make a user friendly pdf reader. I've assigned a pinch gesture to scale the PDF document. When I change orientation to Landscape , it displays fine. When I start pinching - PDF page rotates towards the original orientation (like the emulator hasn't been rotated).

shouldAutorotateToInterfaceOrientation is set to YES

pinching gesture function. sender = ViewController

CGAffineTransform myTransformation = 
CGAffineTransformMakeScale(sender.scale, sender.scale);
sender.view.transform = myTransformation;'

How to开发者_运维百科 prevent this from happening?

0

精彩评论

暂无评论...
验证码 换一张
取 消