I’m writing this code for access webservice and getting an error (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];
}
Some other function before
-(IBAction)loginAction:(id)sendermay not be closed. Try adding}before this function. And check whether all the functions have the correct opening and closing braces.