UIBAlertView icon indicating copy to clipboard operation
UIBAlertView copied to clipboard

Is there a problem if I also implement - (void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex?

Open billchan opened this issue 12 years ago • 0 comments

Hello,

Thanks for your great project.

I am changing my code with old style to block style, so there is some old code still using [UIAlertView initWithTitle...], and sometime I got a crash when tapped the cancel button of UIBAlertView. Any suggestion?

2014-06-12 10:26:36.251 iPAYstPOS.ios7[5057:60b] -[__NSSetM alertView:clickedButtonAtIndex:]: unrecognized selector sent to instance 0x17dba300 2014-06-12 10:26:36.253 iPAYstPOS.ios7[5057:60b] Uncaught exception: -[__NSSetM alertView:clickedButtonAtIndex:]: unrecognized selector sent to instance 0x17dba300 2014-06-12 10:26:36.268 iPAYstPOS.ios7[5057:60b] Stack trace: ( 0 CoreFoundation 0x2ea31feb + 154 1 libobjc.A.dylib 0x39516ccf objc_exception_throw + 38 2 CoreFoundation 0x2ea35967 + 202 3 CoreFoundation 0x2ea34253 + 706 4 CoreFoundation 0x2e9837b8 _CF_forwarding_prep_0 + 24 5 UIKit 0x31464b29 + 144 6 UIKit 0x3146496d + 748 7 UIKit 0x3136c05f + 1078 8 UIKit 0x3141e377 + 214 9 UIKit 0x312cd6f5 + 316 10 UIKit 0x3124655b + 430 11 CoreFoundation 0x2e9fd2a5 + 20 12 CoreFoundation 0x2e9fac49 + 284 13 CoreFoundation 0x2e9faf8b + 730 14 CoreFoundation 0x2e965f0f CFRunLoopRunSpecific + 522 15 CoreFoundation 0x2e965cf3 CFRunLoopRunInMode + 106 16 GraphicsServices 0x3385f663 GSEventRunModal + 138 17 UIKit 0x312b116d UIApplicationMain + 1136 18 iPAYstPOS.ios7 0x000fbd4f main + 226 19 libdyld.dylib 0x39a23ab7 + 2 )

billchan avatar Jun 12 '14 08:06 billchan