jjzjj

PatientCell

全部标签

iphone - 在 UITableViewCell 中动态分配 UIButton 事件

我创建了一个自定义的UITableViewCell子类,其中包含一个名为testbtn的按钮。然后我尝试将该按钮的事件分配给另一个类,但这对我不起作用。你能告诉我哪里出错了吗?这是我的代码:-(UITableViewCell*)tableView:(UITableView*)tableViewcellForRowAtIndexPath:(NSIndexPath*)indexPath{staticNSString*CellIdentifier=@"PatientCell";PatientCell*cell=(PatientCell*)[tableViewdequeueReusableCe