坠机报告:
0 CoreFoundation!__exceptionPreprocess + 0x7c
1 libobjc.A.dylib!objc_exception_throw + 0x34
2 CoreFoundation!-[NSObject(NSObject) doesNotRecognizeSelector:] + 0xd0
3 CoreFoundation!___forwarding___ + 0x364[enter image description here][1]
4 CoreFoundation!_CF_forwarding_prep_0 + 0x58
5 yyfe!__70-[InvestModel getOpenAccountRewardWithPhoneNum:identifyCode:complete:]_block_invoke [InvestModel.m : 104 + 0x4]
6 libdispatch.dylib!_dispatch_call_block_and_release + 0x14
7 libdispatch.dylib!_dispatch_client_callout + 0xc
8 libdispatch.dylib!_dispatch_main_queue_callback_4CF + 0x730
9 CoreFoundation!__CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 0x8我的代码:
NSDictionary* data = returnDict[@"data"];
NSInteger respStatus = [data[@"respStatus"] integerValue];
if ([data[@"code"] isEqual: @(1)] && respStatus == 6) {
[weakSelf saveSuccessGetOpenAccountReward];
callback(YES,[data[@"rank"] integerValue],[data[@"amount"] integerValue],getRewardSuccess);
return;
}以及回调类型:
typedef void(^GetRewardCallBack)(BOOL,NSInteger,NSInteger,GetRewardMessageType);104行是回调(),returnDict的值为“秩”和“值”,我不确定回调=零是否造成崩溃,但是回调不能等于零,知道吗?
发布于 2016-01-12 02:59:52
搞清楚!由服务器返回的数据@“秩”既不是NSString,也不是NSNumber。所以它无法识别@选择器(IntegerValue)
https://stackoverflow.com/questions/34649275
复制相似问题