UIWebView를 사용하여 표시되는 html 콘텐츠가 있습니다. 사용자가 UIPageViewController를 사용하여 페이지를 탐색합니다. 문제는 페이지가 표시된 후에 웹보기가 내용의 렌더링을 완료한다는 것입니다. 눈에 띄는 지연이있어 성능이 저하됩니다.UIWebView 및 UIPageViewController
- (ContentViewController *)viewControllerAtIndex:(NSUInteger)index andPageIndex: (NSUInteger)pageIndex{
if (([self.pageData count] == 0) || (index >= [self.pageData count])) {
return nil;
}
Topic * topic = (Topic *)[pageData objectAtIndex:index];
ContentViewController * contentViewController = [[ContentViewController alloc] init];
[contentViewController setCurrentTopic:topic];
[contentViewController setCurrentPageIndex:pageIndex];
return hadeethViewController;
}
콘텐츠 뷰 컨트롤러는 PageViewContoller에서 실제로로드하지 않는 한 콘텐츠를 렌더링하지 않습니다. viewControllerAtIndex 반환하기 전에로드하려면보기를 적용 할 수있는 방법이 있습니까? 또는 그러한 상황에 대한 해결책이 있습니까?