UITableViewCell didselectrow event delay

Viewed 2730

i am subclassing UITableViewCell in my UITableView. i did it about a thousand times before but now i am trying to catch this delegate event :

- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath*)indexPath;

when the cell is touched this callback should be invoked. but i invoked only if i am pressing like 6 seconds or 6 times after the touch, but not every touch.

the tableview is a subview of a subclassed UIView and i call this in the awakeFromNib :

-(void)awakeFromNib{
_table_view.delegate = self;
_table_view.dataSource = self;
}

the tableview draws itself just fine but this event is not working well. any ideas?

here is the UITableViewCell subclass code .m

#import "FLBlockedPersonCell.h"

@implementation FLBlockedPersonCell

- (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)setHighlighted:(BOOL)highlighted animated:(BOOL)animated{
    [super setHighlighted:highlighted animated:animated];
}



@end
3 Answers
Related