-4
문자열이있어서 테이블보기에 단추의 제목으로 문자열을 사용하여 동적으로 단추를 추가하려고합니다.단추보기 및 동적 텍스트가있는 표보기에 셀 추가
[self.array addObject:@"string"];
[self.tableView beginUpdates];
NSArray *arr = [NSArray arrayWithObject:[NSIndexPath indexPathForRow:self.array.count-1 inSection:0]];
[self.tableView insertRowsAtIndexPaths:arr withRowAnimation:UITableViewRowAnimationAutomatic];
[self.tableView endUpdates];
을하지만 아무것도하지 않는다 :
이 코드를 발견했다.