iOS 6.1
点击按钮时,我想执行从图像视图到 Web 视图的转换。问题是 webview 第一次加载时,页面是白色的,html 页面在转换后加载:
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];
如何在转换之前强制加载 html 页面?