我在iPhone注册页面编码中遇到了意想不到的问题。 错误是
app delegate loading是未声明的标识符
if (!isValid)
{
[AppDelegate showAlert:@"Alert!" withMessage:strMessage];
}
return isValid;
}
-(void)registerUser {
[Loading startLoading:YES];
NSString *urlString = [NSString stringWithFormat:@"url=%@",Access_Token];
//firstname,lastname,email,username,password
NSString *parameter = [NSString
stringWithFormat:@"firstname=%@&lastname=%@&email=%@&username=%@&password=%@",
firstnameField.text,lastnameField.text,
emailField.text,UsernameField.text,passwordField.text];
NSConnection *conn = [[NSConnection alloc] initWithDelegate:self];
[conn sendRequest:urlString withParaMeter:parameter withMethod:@"POST" withTag:1];
[conn startAsynchronousRequest];
}