大佬教程收集整理的这篇文章主要介绍了ios – 使用UIImagePickerController访问照片库后崩溃,大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
@IBACtion func photoLibraryButtonTapped(sender: UIButton) { if UIImagePickerController.issourceTypeAvailable(UIImagePickerControllersourceType.PhotoLibrary) { let imagePicker = UIImagePickerController() imagePicker.delegate = self imagePicker.sourCEType = UIImagePickerControllersourceType.PhotoLibrary imagePicker.allowsEdiTing = true self.presentViewController(imagePicker,animated: true,completion: nil) } }
这是Xcode所说的:
2016-08-08 23:05:11.209 Auyrma[1799:20237892] -[UIViewController photoLibraryButtonTapped:]: unrecognized SELEctor sent to instance 0x7fd3e9d39ed0 2016-08-08 23:05:11.214 Auyrma[1799:20237892] *** TerminaTing app due to uncaught exception 'NSInvalidArgumentexception',reason: '-[UIViewController photoLibraryButtonTapped:]: unrecognized SELEctor sent to instance 0x7fd3e9d39ed0' *** First throw call stack: ( 0 CoreFoundation 0x0000000113fdcd85 __exceptionPreprocess + 165 1 libobjc.A.dylib 0x0000000113a50deb objc_exception_throw + 48 2 CoreFoundation 0x0000000113fe5d3d -[NSObject(NSObject) doesnotRecognizeSELEctor:] + 205 3 CoreFoundation 0x0000000113f2bcfa ___forWARDing___ + 970 4 CoreFoundation 0x0000000113f2b8a8 _CF_forWARDing_prep_0 + 120 5 UIKit 0x00000001124d6a8d -[UIApplication sendAction:to:from:forEvent:] + 92 6 UIKit 0x0000000112649e67 -[UIControl sendAction:to:forEvent:] + 67 7 UIKit 0x000000011264a143 -[UIControl _sendActionsForEvents:withEvent:] + 327 8 UIKit 0x0000000112649263 -[UIControl touchesEnded:withEvent:] + 601 9 UIKit 0x000000011254999f -[UIWindow _sendTouchesForEvent:] + 835 10 UIKit 0x000000011254a6d4 -[UIWindow sendEvent:] + 865 11 UIKit 0x00000001124f5dc6 -[UIApplication sendEvent:] + 263 12 UIKit 0x00000001124cf553 _UIApplicationHandleEventQueue + 6660 13 CoreFoundation 0x0000000113f02301 __CFRUNLOOP_IS_CALLING_OUT_TO_A_sourcE0_PERFORM_FUNCTION__ + 17 14 CoreFoundation 0x0000000113ef822c __CFRunLoopDosources0 + 556 15 CoreFoundation 0x0000000113ef76e3 __CFRunLoopRun + 867 16 CoreFoundation 0x0000000113ef70f8 CFRunLoopRunSpecific + 488 17 Graphicsservices 0x00000001164bcad2 GSEventRunModal + 161 18 UIKit 0x00000001124d4f09 UIApplicationMain + 171 19 Auyrma 0x000000010e1c2d82 main + 114 20 libdyld.dylib 0x0000000114e8492d start + 1 21 ??? 0x0000000000000001 0x0 + 1 ) libc++abi.dylib: terminaTing with uncaught exception of type NSException
以上是大佬教程为你收集整理的ios – 使用UIImagePickerController访问照片库后崩溃全部内容,希望文章能够帮你解决ios – 使用UIImagePickerController访问照片库后崩溃所遇到的程序开发问题。
如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。