2009-11-08 4 views

답변

1

데이터는 당신이 당신의있는 tableView에 reloadData 메시지를 보내보기를 새로 고칠 수 있습니다 업데이트 된 경우 :

[myTableView reloadData];

애플의

0

당신이 UITableView를 사용하여 특정 세포를 다시로드하려면 UITableView reference ' s reloadRowsAtIndexPaths:withRowAnimation: 방법. 예를 들어, 애니메이션없이 섹션 0 행 20에서 셀 및 섹션 2에서 4 행의 셀을 다시로드하려면 : 당신이 테이블보기에서 모든 세포를 다시로드하려면

[cell reloadRowsAtIndexPaths:[NSArray arrayWithObjects: 
           [NSIndexPath indexPathForRow:20 inSection:0], 
           [NSIndexPath indexPathForRow:4 inSection:2], 
           nil] 
      withRowAnimation:UITableViewRowAnimationNone]; 

다음 UITableViewreloadData 방법을 사용 (하지만 성능에 영향을 인식) :

[tableView reloadData]; 

을 양자 택일로, 당신은 단지 (오히려 그 정보를 업데이트하기 위해 다시로드보다) 셀을 다시 그려야 할 경우, 당신이 할 수있는 UIView 님의 setNeedsDisplay 메서드 사용 :

[[cell view] setNeedsDisplay]; 
관련 문제