ios - __NSCFNumber unrecognized selector sent to instance - Weird behavior -
i'm having strange problem object of class, inside block have weak reference of view controller, part of code in block
__weak typeof(self) weakself = self; [weakself performselector:@selector(reloaditems) withobject:nil afterdelay:0]; [weakself.view setuserinteractionenabled:yes]; if (weakself.shouldpresentnotification) { [[llapi sharedinstance] presentlatestnotification]; weakself.shouldpresentnotification = no; }
the problem couple of users have experienced crash [__nscfnumber shouldpresentnotification]: unrecognized selector sent instance 0xbb3c1937855f68da
now, understand crash report telling me weakself nsnumber object, doesn't make sense, , if true why crash raised until variable "shouldpresentnotification" accessed?
edit: here full stack trace:
thread : fatal exception: nsinvalidargumentexception 0 corefoundation 0x0000000182154f5c __exceptionpreprocess 1 libobjc.a.dylib 0x0000000196d4bf80 objc_exception_throw 2 corefoundation 0x000000018215bc6c __methoddescriptionforselector 3 corefoundation 0x0000000182158c14 ___forwarding___ 4 corefoundation 0x000000018205cdcc _cf_forwarding_prep_0 5 laclud 0x00000001001109c4 __38-[llmainvc processlacludsession]_block_invoke424 (llmainvc.m:467) 6 laclud 0x000000010011055c -[llmainvc processlacludsession] (llmainvc.m:516) 7 laclud 0x000000010013ff30 __32-[llgfvc sendfeedback]_block_invoke (llgivefeedbackvc.m:137) 8 laclud 0x000000010014a40c __41-[llapi ratelonjet:like:success:failure:]_block_invoke (llapi.m:189) 9 laclud 0x000000010034349c __66-[rkobjectrequestoperation setcompletionblockwithsuccess:failure:]_block_invoke236 (rkobjectrequestoperation.m:481) 10 libdispatch.dylib 0x00000001975457b0 _dispatch_call_block_and_release 11 libdispatch.dylib 0x0000000197545770 _dispatch_client_callout 12 libdispatch.dylib 0x000000019754ae20 _dispatch_main_queue_callback_4cf 13 corefoundation 0x000000018210c258 __cfrunloop_is_servicing_the_main_dispatch_queue__ 14 corefoundation 0x000000018210a0c0 __cfrunlooprun 15 corefoundation 0x0000000182038dc0 cfrunlooprunspecific 16 graphicsservices 0x000000018d18c088 gseventrunmodal 17 uikit 0x0000000187712f44 uiapplicationmain 18 laclud 0x0000000100178900 main (main.m:15) 19 libdyld.dylib 0x00000001975768b8 start
any appreciated.
thanks
Comments
Post a Comment