Does a single rotation gesture event not work?

I am using the following code

recognizer = [[UIRotationGestureRecognizer alloc] initWithTarget:self action:@selector(handleRotationFrom:)]; [self.view addGestureRecognizer:recognizer]; [recognizer release]; 

but when I do the one finger rotation event. function handleRotationFrom not called? any help please? I added the delegation method also in my UIView .. any help please?

+4
source share
1 answer

The rotation gesture always includes two touches. If you want to test it in the iphone simulator, hold down the options key when pressed.

+4
source

Source: https://habr.com/ru/post/1333661/


All Articles