2013-06-30 83 views
0

我的应用程序中有一个WebView,可以正常工作,但载入速度非常慢。有没有一种方法可以在应用程序启动后立即开始加载Web视图?应用程序启动后立即加载WebView

感谢

[EconCalWebView setDelegate:self]; 
// Do any additional setup after loading the view. 
NSURL *myURL = [NSURL URLWithString:@"http://www.forexyard.com/en/calendar.iframe?zone_id=9493"]; 
NSURLRequest *myRequest = [NSURLRequest requestWithURL:myURL]; 
[EconCalWebView loadRequest:myRequest]; 

回答

0

你可以写你的代码装载的WebView:在AppDelegate类可用

applicationDidFinishLaunching方法。

这里您需要首先加载您的viewController,然后加载webView。

详情请见:UIApplicationDelegate

相关问题