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

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -