나는 메인 스레드 등에서 실행하는 것과 같은 모든 방법을 시도해 보았다. 그러나 그들 중 어느 것도 작동하지 않는다 .. 내 테이블에는 이미지 오디오와 텍스트가 포함 된 500 개 이상의 행이 있습니다. 5 ~ 10 초의 시간과 UI가 멈 춥니 다. 제발 도와주세요 ...
NSOperational Queue를 사용할 수 있습니다.
NSOperationQueue *que = [[NSOperationQueue alloc]init];
[que addOperationWithBlock:^{
[[NSOperationQueue mainQueue] addOperationWithBlock:^{
//u can assign all the table view values and content here
// it will not pause the data u can scroll immediately
}];
}];
솔루션 2 :
ur 데이터 호출 :
dispatch_async(dispatch_get_main_queue(), ^{
//call ur data methods or web services methods in side this block
});
테이블보기에 데이터 할당 :
NSOperationQueue *que = [[NSOperationQueue alloc]init];
[que addOperationWithBlock:^{
[[NSOperationQueue mainQueue] addOperationWithBlock:^{
//u can assign all the table view values and content here
// it will not pause the data u can scroll immediately
}];
}];
이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.
침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제
몇 마디 만하겠습니다