PopMenu
PopMenu copied to clipboard
eventhandling
Hi,
I successfully integrated PopMenu to my project. Are there any eventhandlers for the buttons?
thx
*Please correct me if I'm wrong.
For @mpnguyenreply question, I think it could be answered by the PopMenuExample. You will find this code as below:
_popMenu.didSelectedItemCompletion = ^(MenuItem *selectedItem) { NSLog(@"%@",selectedItem.title); <-- Here is where you receive the event handlers from buttons. };
@baby03201 _popMenu.didSelectedItemCompletion = ^(MenuItem *selectedItem) { NSLog(@"%@",selectedItem.title); }; how to swift?
@pengleyang FYI popMenu.didSelectedItemCompletion = { selectedItem in print(selectedItem.title) }