如何啓用UITextView的滑動手勢識別?如何啓用UITextView的滑動手勢
這是我的代碼,附加到它的事件不會觸發。它適用於水龍頭,而不是輕掃。
// Add swipe support for easy textview content clean up
UISwipeGestureRecognizer *swipe = [[UISwipeGestureRecognizer alloc] initWithTarget:self action:@selector(eraseTextWithSwipe:)];
[targetContent addGestureRecognizer:swipe];
[swipe release];
我該怎麼做?
我不確定這個問題中的任何建議是否有幫助;它沒有被接受的答案。 http://stackoverflow.com/questions/2042930/successful-swipe-in-uitextview – Greg 2010-09-13 16:36:58
謝謝你的評論,但不適用,我已經看到它。這使用了蘋果在iPhone 4.x中不推薦的技術。 – amok 2010-09-14 14:16:50