나는 존재하는 UserView 및 existUserCustomCell 클래스가 있어야합니다.UIButton을 통해 매개 변수를 전달하는 방법
existUserView의 코드 : existUserCustomCell에
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
ExistUserCustomCell *cell = (ExistUserCustomCell*)[tableView dequeueReusableCellWithIdentifier:@"ExistUserCustomCell"];
KidManager *kid = [self.kidsArray objectAtIndex:indexPath.row];
cell.kidName.text = kid.firstName;
if([kid.inside isEqualToString:@"1"]){
cell.kidStatus. text = @"some string";
}else{
cell.kidStatus.text = @"some string";
}
return cell;
}
번호 : I '는 existUserCustomCell'모두 버튼 기능 'existUserView'의 데이터를 전달할 때 열을 알아야
- (IBAction)reportMissing:(id)sender {
}
- (IBAction)callTeacher:(id)sender {
}
나는 그들을 눌러. 어떻게하면 가장 좋은 방법일까요?
왜 셀에 행을 알 필요가 있습니까? 그것은 거의 필요하지 않습니다. – rmaddy
다른 클래스에서 처리하는 사용자 정의 셀 .. – OshriALM
그건 내 질문에 대답하지 않습니다. – rmaddy