...子クラスに過負荷didSelectRowAtIndexPathも、あなたがスーパーを呼び出す前に、やりたいように思えるでしょう、私はOPはまだ答えを待っているが、将来サーチャーの利益のためにされた疑い:
あなたは、細胞内でタッチイベントをつかむことができ、行為、それを破棄、またはチェーンをそれを渡す次のいずれか
@interface MyCell : UITableViewCell
// ...
@end
@implementation MyCell
// ...
- (void) touchesBegan: (NSSet*) touches withEvent: (UIEvent*) event
{
UITouch* touch = [[event allTouches] anyObject];
CGPoint someLocation = [touch locationInView: someView];
CGPoint otherLocation = [touch locationInView: otherView];
if ([someView pointInside: someLocation: withEvent: event])
{
// The touch was inside someView. Do some stuff,
// but don't invoke tableView:didSelectRowAtIndexPath: on the delegate.
}
else if ([otherView pointInside: otherLocation: withEvent: event])
{
// The touch was inside otherView. Do other stuff.
// Send the touch on for processing, and tableView:didSelectRowAtIndexPath: handling.
[super touchesBegan: touches withEvent: event];
}
else
{
// Send the touch on for processing, and tableView:didSelectRowAtIndexPath: handling.
[super touchesBegan: touches withEvent: event];
}
}
@end