这是错误:
指向整数转换的不兼容指针将“NSString *”发送到“BOOL”类型的参数(又名“有符号字符”)
我不知道该怎么办。请告诉我我的错误。
{
NSString *post =[NSString stringWithFormat:@"username=%@&password=%@",Name.text, Passwort.text];
NSString *hostStr = @"www....de.php";
hostStr = [hostStr stringByAppendingString:post];
NSData *dataURL = [NSData dataWithContentsOfURL: [ NSURL URLWithString: hostStr ]];
NSString *serverOutput = [[NSString alloc] initWithData:dataURL encoding: NSASCIIStringEncoding];
BOOL loggedIn = [serverOutput isEqualToString: @"YES"];
if (loggedIn)
{
[_LOGIN setEnabled:@"YES"];
}
else
{
[_LOGIN setEnabled:@"NO"];
UIAlertView *alertsuccess = [[UIAlertView alloc] initWithTitle:@"Error" message:@"Benutzername oder Passwort falsch"
delegate:self cancelButtonTitle:@"OK" otherButtonTitles:nil, nil];
}
}