0
2 개의 다른 섹션에서 2 개의 행의 데이터를 변경하려고합니다. 그 중 하나가 선택되면 동일한 섹션이 만들어져 동일한 대답을 갖게됩니다. 하지만 작동하지 않습니다 :다른 섹션에서 uitableviewcell 데이터를 변경하는 방법?
NSIndexPath *indexPath1 = [NSIndexPath indexPathForRow:row1 inSection:section1];
cell = [self.tableView cellForRowAtIndexPath:indexPath1];
//DO SOMETHING WITH CELL LABEL
NSIndexPath *indexPath2 = [NSIndexPath indexPathForRow:row2 inSection:section2];
cell = [self.tableView cellForRowAtIndexPath:indexPath2];
//MAKE THIS CELL LABEL SAME AS THE LAST ONE
두 번째 셀이 다른 섹션에 있으면 작동하지 않습니다! 어떠한 제안?
없습니다. 데이터를 변경하고 셀, 섹션 또는 전체 테이블을 다시로드해야합니다. –