Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash on dismiss #1

Open
marcllucia opened this issue Jul 30, 2013 · 4 comments
Open

Crash on dismiss #1

marcllucia opened this issue Jul 30, 2013 · 4 comments
Assignees

Comments

@marcllucia
Copy link

Whenever I try to dismiss the picker the app crashes.
It seems the problem is in this line:

callBack([self selectedObject]);

@madjid
Copy link
Owner

madjid commented Aug 4, 2013

Thanks for the feedback, I will look into it and get back to you.

One question, how are you dismissing the control? Could you please show me the code you're using?

@ghost ghost assigned madjid Aug 4, 2013
@marcllucia
Copy link
Author

I just use the function +(void)dismissWithCompletion: (void(^)(NSString *))completion;

  • (void)viewWillDisappear:(BOOL)animated
    {
    [MMPickerView dismissWithCompletion:nil];
    }

@marcllucia
Copy link
Author

It crashes on the sample project too!

@ashchan
Copy link

ashchan commented Oct 7, 2013

@marcllucia , @madjid I think the issue is different objects are passing to the completion block when a row is selected or 'done' is pressed. The first passes the selected string (by calling the supplied convert to string block) while the latter passes the actual selected object.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants