if ステートメントが機能しません。active
1 を返しますが、IF statement
JSONDecoder *jsonKitDecoder = [JSONDecoder decoder];
NSDictionary *dict = [jsonKitDecoder objectWithData:jsonData];
NSString *userid = [dict valueForKeyPath:@"users.user_id"];
NSString *active = [dict valueForKeyPath:@"users.active"];
NSLog(@"%@",userid); // 2013-06-20 03:03:21.864 test[81783:c07] (74)
NSLog(@"%@",active); // 2013-06-20 03:03:21.864 test[81783:c07] (1)
if ([active isEqualToString:@"1"]){
// Do something
}
私はこれを機能させることができないようですIF
。を に変更する必要がありNSString
ますint
か?