开发者

single Rotation gesture event is not working?

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜