-[__NSCFNumber length]: unrecognized selector sent to instance 0xb000000000003e85

2016.05.17

2016-05-18 00:21:31.817 shiti1[6840:793045] -[__NSCFNumber length]: unrecognized selector sent to instance 0xb000000000003e85

2016-05-18 00:21:31.838 shiti1[6840:793045] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSCFNumber length]: unrecognized selector sent to instance 0xb000000000003e85'

*** First throw call stack:

返回的json

"WHType": 5,

"WHAddress": "test",

"WHArea": 1000,

"WHArealeast": 100,

"WHAreaRemaind": 900,

如果不是“”格式,就说明不是字符串,这种直接解析出来是NSNumber,就没有length 方法

你可能感兴趣的:(-[__NSCFNumber length]: unrecognized selector sent to instance 0xb000000000003e85)