2
매우 이상한 문제가 있습니다. 나는이 내 컨트롤을 수행 한 후 다음didSelectRowAtIndexPath에서 테이블 새로 고침 후 cellForRowAtIndexPath가 호출되지 않음
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath{
[invoiceTable reloadData]; // my table
}
를하고있는 중이 야하는 것은 invoiceTable
에 대한
-(NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
{
if(tableview == invoiceTable) {
return 5;
}
else {
return 6;
}
}
그러나 cellForRowAtIndexPath
로 옮겨진됩니다 호출되지 않습니다. 데이터 소스를 연결하고 제대로 위임했습니다.
어떻게 연결 했습니까? –
IBOutlet 사용하기. 즉보기에서 클래스로 드래그 – Raj
* NSLog *를 넣고 어떻게 될까요? –