在UIApplication Expecting ':'
上收到错误。
@interface ViewController ()
@end
@implementation ViewController
-(IBAction) pushButton{
[[UIApplication sharedApplication openURL: [NSURL URLWithString:@"http://www.portfoliopathway.com"]];
}
答案 0 :(得分:0)
您在sharedApplication
之后缺少结束括号。
-(IBAction) pushButton{
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"http://www.portfoliopathway.com"]];
}