1

我正在编写此代码以访问 web 服务并收到错误(EXPECTED EXPRESSION)

-(IBAction)loginAction:(id)sender  //here I m getting the error(  (*expect expresion)))                          
{
    NSString *urlStr = [NSString stringWithFormat:@"http://192.168.0.2/mobileBill/login.ashx?username=%@&password =%@&simno=%@", username.text, password.text, @""];
    NSURL *url = [NSURL URLWithString:urlStr];
    request = [NSMutableURLRequest requestWithURL:url];
    connection = [NSURLConnection connectionWithRequest:request delegate:self];
}
4

1 回答 1

0

之前的一些其他功能-(IBAction)loginAction:(id)sender可能不会关闭。尝试}在此功能之前添加。并检查所有函数是否有正确的开括号和右括号。

于 2012-11-23T07:49:53.250 回答