Objective-C JSON Boolean -
i have parsed json object has following structure:
{ data = "<null>"; "error_type" = "input_error"; msg = "missing field parameter"; success = 0; }
i'm trying compariosn see whether success true or false, dosnt work , gives me warning saying can't compare pointer integer. i've tried no , yes.
anyhelp appreciated.
i believe success
being cast nsnumber. try [success boolvalue]
.
Comments
Post a Comment