0
(的UITableViewCell *)的tableView:(UITableView的*)的tableView的cellForRowAtIndexPath:(NSIndexPath *)indexPath {確定Tableview中每一行的按鈕選擇?
UIButton *btn = [UIButton buttonWithType:UIButtonTypeRoundedRect]; btn.frame = CGRectMake(230.0f, 4.0f, 60.0f, 36.0f); [btn setTitle:@"OK" forState:UIControlStateNormal]; [btn setTitle:@"OK" forState:UIControlStateSelected]; [btn addTarget:self action:@selector(onClickRename:) forControlEvents:UIControlEventTouchUpInside]; [cell addSubview:btn]; return cell;
}
但如果用戶選擇特定行的鍵,我可以通過onClickRename更改該圖片...但是,我可以通過哪些圖片的排列已經被觸及了
- (void)tableView :(UITableView )tableView didSelectRowAtIndexPath :(NSIndexPath)indexPath?