XCode ios4 UIWebView Code Problem

2019-09-22 04:39发布

-(void)viewDidLoad {

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

}

1条回答
趁早两清
2楼-- · 2019-09-22 05:34
[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
 ];]; => ]];
查看更多
登录 后发表回答