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

No "cancel" button #122

Closed
olivej opened this issue Dec 29, 2014 · 2 comments
Closed

No "cancel" button #122

olivej opened this issue Dec 29, 2014 · 2 comments

Comments

@olivej
Copy link

olivej commented Dec 29, 2014

It would be nice to be able to pass nil for the cancel button if we don't want a cancel button - that seems to make it crash. I also tried passing in a blank string for the cancel button title, but if I click in the area of the cancel button, it still cancels out the picker. I would like to have an option for not having a "cancel" button at all.

This is great work btw, helped me a lot with my iOS8 project. Thanks.

@skywinder
Copy link
Owner

Hi. You can use the property hideCancel to hide cancel button:

myActionSheetPicker.hideCancel = YES;

But I think it's good idea to hide cancel button by passing nil to cancel button property also. I'll implement it in next version.

skywinder added a commit that referenced this issue Dec 29, 2014
@olivej
Copy link
Author

olivej commented Dec 30, 2014

Thanks so much! This helps a lot.

@skywinder skywinder modified the milestone: 1.3.9 Jan 8, 2015
skywinder added a commit that referenced this issue Jan 9, 2015
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

2 participants