NSLog UIGestureRecognizer描述?

时间:2012-02-21 09:37:39

标签: iphone objective-c uitextview uigesturerecognizer nslog

如何使用NSLog获取consol,这是UITextView上的gestureRecogniser列表?

类似的东西?

NSLog([UIGestureRecognizer description]);

1 个答案:

答案 0 :(得分:5)

不,这样的事情:

for (UIGestureRecognizer *g in textView.gestureRecognizers) {
    NSLog(@"g %@", g);
}