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

Added callback for custom button being pressed #81

Merged
merged 21 commits into from
Oct 31, 2014

Conversation

velga
Copy link

@velga velga commented Oct 21, 2014

I've added ability to implement custom blocks or selectors when custom buttons are pressed.

void (*objc_msgSendTyped)(id target, SEL _cmd, id pickerView, NSInteger row, NSInteger component) = (void *) objc_msgSend; // sending Integers as params
objc_msgSendTyped(self, @selector(pickerView:didSelectRow:inComponent:), picker, buttonValue, 0);

NSInteger actionType = [buttonDetails[kActionType] intValue];
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To clarify, what is actionType - it should be type of ActionType, not NSInteger

@skywinder
Copy link
Owner

Very nice! Please check pull request with couple fixes velga#1

p.s.
And don't forget about README.md :)

@skywinder
Copy link
Owner

Super. Thanks Vlada! You did it! ㊗️

skywinder added a commit that referenced this pull request Oct 31, 2014
Added callback for custom button being pressed
@skywinder skywinder merged commit f17c731 into skywinder:master Oct 31, 2014
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

Successfully merging this pull request may close these issues.

2 participants