I am new to iOS development and I am working on UIMenuController
. It looks like we need to have a different selector for each UIMenuItem
.
Is there a way to have a single selector and determine which item I clicked?
Can we send an argument to the selector so that we can identify which item we clicked?
This is the way i am initializing the menu item.
UIMenuItem *item = [[UIMenuItem alloc]initWithTitle:@"Item 1" action:@selector(itemClicked:)];