나는 여러 행의 데이터를 표시하기 위해 이름 : textLabel.text, 상태 (온라인/오프라인)를 표시하는 imageView, 추가 정보를위한 detailTextLabel을 사용하고 있습니다.업데이트 UITableView의 imageView/detailTextLabel
ex. 내가 다른 함수에서 imageView.image 및 detailTextLabel.text를 업데이트 할 수있는 방법
cell.imageView.image = [UIImage imageNamed:@"checking.png"];
cell.textLabel.text = @"NAME";
cell.detailTextLabel.text = @"Checking...";
cellForRowAtIndexPath
있다. UITableView 메서드가 있습니까? 셀을 대상으로 IndexPath 행을 사용해야 할 것으로 추측됩니다. 각 imageView 및 detailTextLabel에 태그를 지정 하시겠습니까?감사합니다.
행 (IndexPath.row)을 열고 detailTextLabel 및 imageView.image를 업데이트 하시겠습니까? 몇 가지 샘플 코드를 제공 할 수 있습니까? 감사. – ialphan
테이블 뷰 데이터 원본 메서드를 올바르게 구현하고 있습니까? tableView : cellForRowAtIndexPath : – Wain
예, 다음과 같은 것을 사용했습니다. UITableViewCell * cell0 = [self.tableView cellForRowAtIndexPath : [NSIndexPath indexPathForRow : 0 inSection : 0]]; indexPathForRow 및 inSection이 고정되는 위치. Frm이 cell0을 업데이트 할 수있었습니다. cell0.imageView.image = [UIImage imageNamed : @ "connected.png"]; – ialphan