[UIButton _needsSetup]: unrecognized selector sent to instance 0x7fac04c6638 报错解决

博客指出若出现特定错误,是因按钮存在问题,可在xib文件中检查所有UIButton来解决。

这个错误呢是说明你一个按钮有问题,在你的xib文件中检查所有的UIButton即可

Exception Type: EXC_CRASH (SIGABRT) Exception Codes: 0x0000000000000000, 0x0000000000000000 Triggered by Thread: 0 Last Exception Backtrace: 0 CoreFoundation 0x18cb7d40c __exceptionPreprocess + 160 (NSException.m:202) 1 libobjc.A.dylib 0x185e59c28 objc_exception_throw + 56 (objc-exception.mm:356) 2 AVFCapture 0x1a4e70198 -[AVCaptureStillImageOutput captureStillImageAsynchronouslyFromConnection:completionHandler:] + 472 (AVCaptureStillImageOutput.m:696) 3 shandongMarket 0x10528c300 -[ATTakePhotoVC shutterCamera] + 268 (ATTakePhotoVC.m:554) 4 UIKitCore 0x18ed3d2a4 -[UIApplication sendAction:to:from:forEvent:] + 96 (UIApplication.m:5685) 5 UIKitCore 0x18ed3cfc4 -[UIControl sendAction:to:forEvent:] + 108 (UIControl.m:876) 6 UIKitCore 0x18ed3c9cc -[UIControl _sendActionsForEvents:withEvent:] + 268 (UIControl.m:947) 7 UIKitCore 0x18ed3c8a8 -[UIButton _sendActionsForEvents:withEvent:] + 120 (UIButton.m:4203) 8 UIKitCore 0x18ed3c484 -[UIControl touchesEnded:withEvent:] + 396 (UIControl.m:639) 9 UIKitCore 0x18ebfd658 -[UIWindow _sendTouchesForEvent:] + 1036 (UIWindow.m:3191) 10 UIKitCore 0x18ebfc96c -[UIWindow sendEvent:] + 3224 (UIWindow.m:3491) 11 UIKitCore 0x18ebfbc58 -[UIApplication sendEvent:] + 744 (UIApplication.m:12664) 12 UIKitCore 0x18ebf9ecc __dispatchPreprocessedEventFromEventQueue + 1980 (UIEventDispatcher.m:2414) 13 UIKitCore 0x18ec3f898 __processEventQueue + 5556 (UIEventDispatcher.m:2764) 14 UIKitCore 0x18ef1fc14 __eventFetcherSourceCallback + 156 (UIEventDispatcher.m:2795) 15 CoreFoundation 0x18cc3d0e8 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 24 (CFRunLoop.c:1957) 16 CoreFoundation 0x18cc48d5c __CFRunLoopDoSource0 + 172 (CFRunLoop.c:2001) 17 CoreFoundation 0x18cbd3fc4 __CFRunLoopDoSources0 + 232 (CFRunLoop.c:2038) 18 CoreFoundation 0x18cbe9138 __CFRunLoopRun + 784 (CFRunLoop.c:2953) 19 CoreFoundation 0x18cbedd20 CFRunLoopRunSpecific + 584 (CFRunLoop.c:3418) 20 GraphicsServices 0x1c4cbd998 GSEventRunModal + 160 (GSEvent.c:2196) 21 UIKitCore 0x18ee8034c -[UIApplication _run] + 868 (UIApplication.m:3782) 22 UIKitCore 0x18ee7ffc4 UIApplicationMain + 312 (UIApplication.m:5372) 23 shandongMarket 0x104f026dc main + 80 (main.m:14) 24 dyld 0x1aa3ac344 start + 1860 (dyldMain.cpp:1165)
最新发布
07-24
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值