XCode ios4 UIWebView Code Problem

我的梦境 提交于 2019-12-13 23:17:54

问题


-(void)viewDidLoad {

    [webView loadRequest:(NSURLRequest) requestWithURL:[NSURL URLWithString:@"http://itunes.apple.com/ca/album/zirka-live/id352921457"]];]; 

}

回答1:


[webView loadRequest:(NSURLRequest) requestWithURL:[NSURL
    URLWithString:@"http://itunes.apple.com/..."]];];

should be

[webView loadRequest:[NSURLRequest requestWithURL:[NSURL
    URLWithString:@"http://itunes.apple.com/..."]]];

that is

 (NSURLRequest) => [NSURLRequest
 ];]; => ]];


来源:https://stackoverflow.com/questions/3305396/xcode-ios4-uiwebview-code-problem

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!