기본적으로 네트워크를 새로 고치고 개체를 가져 와서 내 응용 프로그램 대리인의 nsmutable 배열에 저장하려고합니다. 그런 다음 해당 가변 배열을 사용하여 데이터를 표시하는 listviewController 있습니다.NSArray 설정 속성이 작동하지 않습니다.
//Appdelegate code called after pulldown to refresh is done on listview:
[ListView setArrayElements:(NSMutableArray*)sortedArray ];
NSLog(@"sortedArray count:%d",sortedArray);
NSLog(@"ListView Array count:%d",[ListView.ArrayElements count]);
Result i get in log : "sortedArray count:12" (which is perfect)&"ListView Array count:0" (this is not the right result)
Try with BeginUpd ates 및 EndUpdate 메소드를 사용하여 문제없이 사용하십시오. –
요청 시간이 예상 된 후에 테이블 뷰를 새로 고치는 데 NSTimer를 사용하고 있습니다. 그러나 시간 확장을 과소 평가하고 실제로 새로운 데이터를 얻기 전에보기를 새로 고칩니다. –
타이머로 새로 고침하는 이유는 무엇입니까? 왜 데이터를 다시로드 한 직후에 reloadTableView를 호출하지 않습니까? –