ios - How to force UIWebView to load before transition -


ios 6.1

when button tapped, want perform transition imageview webview. problem first time webview loads, page white , html page loads after transition:

nepcontainerview *containerinframe = (nepcontainerview *)[self view];  uiwebview *webview = [[uiwebview alloc] initwithframe:self.view.frame];  [webview loadhtmlstring:html baseurl:nil];  [uiview transitionwithview:containerinframe                       duration:duration_trans_photo_desc                        options:uiviewanimationoptiontransitionflipfromleft                     animations:^{                         [containerinframe addsubview:webview];                         [sender settitle:@" photo "];                     }                     completion:null]; 

how can force html page loaded before transition?

you can use webcontentview library.

this library have 1 method named

+ (void)preloadcontent:(nsstring *)content; 

you can use method preload content render fast.

hope helps.

here useful link

preloading uiwebview, avoiding white screen flash


Comments

Popular posts from this blog

java - activate/deactivate sonar maven plugin by profile? -

python - TypeError: can only concatenate tuple (not "float") to tuple -

java - What is the difference between String. and String.this. ? -