You need to convert the value from the dictionary. You cannot translate it directly to pointer BOOL *( BOOL).
Suppose you get NSString*from your dictionary, you can do:
NSString *result = [dictionary valueForKey:@"result"];
if ([result boolValue]) {
[parser release];
} else {
errorLbl.text = @"Login failed";
}
Assuming you can use a boolValuemessage with your protocol.
source
share