0

I've got a UIImagePickerController with sourceType set to UIImagePickerControllerSourceTypeSavedPhotosAlbum and that allowsEditing.

It's delegate methods don't get called.

If sourceType is UIImagePickerControllerSourceTypeCamera or if I turn allowsEditing off then they are being called.

Does anybody know why?

2
  • I haven't had this issue before. Can you post your code so we can help investigate futher? Commented Mar 31, 2015 at 14:38
  • @BrianSachetta I was surprised myself, but just found the problem. See my answer below Commented Mar 31, 2015 at 14:49

2 Answers 2

1

are you connecting delegate to self?

yourpickercontroller.delegate = self

add this to viewDidLoad

Sign up to request clarification or add additional context in comments.

Comments

0

Found the problem, it's rare, but might help someone with a similar issue.

Make sure that in your project the push and pop method for UINavigationController aren't swizzled.

In my case it was setup to ignore other pushes/pops if another push/pop is in progress.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.