开发者

single Rotation gesture event is not working?

开发者 https://www.devze.com 2023-02-01 20:29 出处:网络
I am using following code recognizer = [[UIRotationGestureRecognizer alloc] initWithTarget:self action:@selector(handleRotationFrom:)];

I am using following code

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

but when i do single finger rotation event. the function handleRotationFrom is not called? any help please开发者_C百科?I have added delegate method also in my UIView..any help please?


A rotation gesture always involves two touches. If you want to test it in iphone simulator hold down option key while clicking.

0

精彩评论

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