(初学者)自定义的UITableViewCell为什么不能响应事件

(菜鸟求助)自定义的UITableViewCell为什么不能响应事件
情况是这样的,我自定义了一个UITableViewCell,显示数据什么的都一切正常,但是单击cell的时候没有事件响应,didSelectRowAtIndexPath这个方法进不去,UITableViewDelegate, UITableViewDataSource必须的方法也已经实现了,头痛啊,求大虾指点~急死~
UITableViewCell的xib:
图传不上来了,大致情况就是3个label和两个imageview
实现类(网上的一个例子):

#import "MessageTableCell.h"


@implementation MessageTableCell

@synthesize imageView;
@synthesize nameLabel;
@synthesize decLabel;
@synthesize locLabel;
@synthesize helpImgeView;

@synthesize image;
@synthesize helpImage;
@synthesize name;
@synthesize dec;
@synthesize loc;


- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        // Initialization code
        
    }
    return self;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated
{
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

- (void)setImage:(UIImage *)img {
    if (![img isEqual:image]) {
        image = [img copy];
        self.imageView.image = image;
    }
}

-(void)setName:(NSString *)n {
    if (![n isEqualToString:name]) {
        name = [n copy];
        self.nameLabel.text = name;
    }
}

-(void)setDec:(NSString *)d {
    if (![d isEqualToString:dec]) {
        dec = [d copy];
        self.decLabel.text = dec;
    }
}

-(void)setLoc:(NSString *)l {
    if (![l isEqualToString:loc]) {
        loc = [l copy];
        self.locLabel.text = loc;
    }
}

- (void)setHelpImage:(UIImage *)img {
    if (![img isEqual:helpImage]) {
        helpImage = [img copy];
        self.helpImgeView.image = helpImage;
    }
}

@end

在表视图中用这个MessageTableCell后,数据都正常,就是没法儿相应单击事件,求帮忙!
------最佳解决方案--------------------
didSelectRowAtIndexPath这个方法  响应的是tableview对象的委托方法,确认tableview.delegate = self;这句已加
------其他解决方案--------------------
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath 看看这个方法的实现。。
------其他解决方案--------------------
应该是XIB文件设置的问题。
你可以试试代码关联的方式。
例子:http://code4app.com/ios/%E7%AE%80%E5%8D%95UITableViewDemo/505548916803fa6b06000000