在我的应用程序创建的,我已经采取了表一个UIViewController页面。 通过定制我已经创建了一个附加的按钮,表在该表的每个单元。如何让表格单元格按钮进行操作
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
static NSString *CellIdentifier = @"Cell";
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
if(cell == nil) {
[[NSBundle mainBundle] loadNibNamed:@"CustomBuddy" owner:self options:nil];
cell = self.customCell;
self.customCell = nil;
}
cell.text = (NSString *)[names objectAtIndex:indexPath.row];
return cell;
}
,并添加动作添加按钮
-(IBAction)addButtonClicked
{
NSLog(@"Add button clicked");
}
现在
在此添加按钮我想的名字在细胞中。 我该怎么做才能帮到我......