I actually know that the data returned is a Boolean type,
It's just that when you make a judgment, you find direct use
if([responseobjectobjectforkey:@ "Success"]) judgment does not make any sense, Because I'm judging that this is not true, in other words, is not a non-empty,
Oh, no, of course not. Returns a false but that is also worthwhile, so, I try to use change data type to receive,
When I use NSString * to receive,
This error occurs
[__Nscfboolean isequaltostring:]: Unrecognized selector sent to instance
OMG, well, he's really not a string type, he's a Boolean,
Then try to use [[Responseobject objectforkey:@ "Success"] boolvalue];
Don't ask me why I don't receive it directly with BOOL because there's a damn warning.
I'm sorry I'm a little excited.
Well, now sum it up:
It is estimated that the number of ID types that iOS receives by default is NSNumber type, so value is needed here,
Oh, yes, if it's post, all the data is really nsnumber, so the data that JSON receives and sends is really the NSNumber class.
That made sense.