I am facing problem in UIImagePickerController selection. When I choose source from Photo Library App crashes due to Invalid signature for pointer dequeued from free list. then If I run again it works fine with the same code. I searched on google and found one question related to my query Xcode - My app crash and the error is "Invalid pointer dequeued from free list *** set a breakpoint in malloc_error_break to debug" .
but solution isn't working in my case.
I am using Xcode 8.1 and my deployment Target is 8.0.
As @luke requested for the code for
UIImagePickerViewController
:Now when the user picks a particular image: This method will be called:
Don't forget to import
PhotosUI
andUIImagePickerControllerDelegate
.