【发布时间】:2016-03-02 16:47:27
【问题描述】:
我有一个标准方法,在表格中形成单元格:
- (SearchTableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
cell.button.tag = 3;
}
单元格内有带有动作的按钮:
- (IBAction)changeName:(id)sender {
// GOTO
}
点击后如何更改按钮的名称
【问题讨论】:
-
UIButton *button = (UIButton *)sender; if (button.tag == 3){//set button title}? -
@Larme,这可能就是全部答案。你愿意回答吗? :)
标签: ios objective-c