При создании пользовательской ячейки убедитесь, что вы добавляете контроллер представления в качестве цели действия кнопки.Итак, в контроллере вашего представления (при условии, что это источник данных для табличного представления):
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
// All your standard identifier & dequeueing stuff here
if (cell == nil)
{
// We are creating a new cell, let's setup up its button's target & action
cell = [[[CustomCell alloc] initWithStyle:UITableViewCellStyleSubtitle reuseIdentifier:CellIdentifier] autorelease];
[cell.yourButton addTarget:self action:@selector(yourAction:) forControlEvents:UIControlEventTouchUpInside];
}
return cell;
}