3
我有一個UITableView
和其UITableViewCell
了,我就是增加了UILongPressGestureRecognizer
這樣的:的UITableViewCell閃爍上長按
// Setup Event-Handling
UILongPressGestureRecognizer *longPress = [[UILongPressGestureRecognizer alloc] initWithTarget:self action:@selector(handleTableViewCellLongPress:)];
[cell addGestureRecognizer:longPress];
[longPress setDelegate:self];
我想在小區當事件被激活閃爍,我也要就像禁止標準行爲一樣(按一下它變成藍色)。
我該如何在我的handleTableViewCellLongPress
-Method中做到這一點?
謝謝!
很好,如果你可以檢測到哪個小區長期接觸,美國可以只放一個UIImage與阿爾法或可見的uianimation。併爲藍色選擇你可以做cell.selectionStyle = UITableViewCellEditingStyleNone; – Ashishail 2012-03-09 12:39:17