2012-11-23 24 views
1

我正在寫訪問web服務的代碼,並得到一個錯誤(EXPECTED EXPRESSION)如何清除預期的表達錯誤WEBSERVICES

-(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]; 
} 

回答

0

-(IBAction)loginAction:(id)sender之前,其他一些功能可能無法關閉。嘗試在此功能之前添加}。並檢查所有功能是否有正確的開啓和關閉支撐。