-1
@implementation SecondViewController

- (void)viewDidLoad
{
    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.
    webView.userInteractionEnabled = TRUE;
    [webView loadRequest: [[NSURLRequest alloc] initWithURL: [[NSURL alloc] initWithString: [[[@"http//:www.mobile-boome.weebly.com/boome-webviwer.html" ]]];
}

- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end

问题在第 8 行:xcode 说预期的标识符,但我不明白问题是什么,所以我无法修复它!谢谢

4

1 回答 1

1

你在那一行有额外的括号。此外,NSURLRequest 和 NSURL 都有简化类实例构造的类方法。

尝试这个:

[webView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:@"http//:www.mobile-boome.weebly.com/boome-webviwer.html"]]];
于 2013-10-04T21:45:06.947 回答