应用程序启动后立即加载WebView

时间:2013-06-30 14:11:54

标签: ios webview load

我的应用程序中有一个WebView,运行正常,但加载速度很慢。有没有办法在应用程序启动后立即开始加载Web视图?

由于

 [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];

1 个答案:

答案 0 :(得分:0)

您可以在以下位置编写用于加载webview的代码:

AppDelegate Class中提供的

applicationDidFinishLaunching方法。

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

请在以下网址找到更多详情:UIApplicationDelegate

相关问题