The SDK tells me that UIBarButtonItem inherits from UIBarItem. That should mean that a UIBarButtonItem should have an associated tag property.
The problem for me is that Xcode is telling me that tag, title and other properties are *NOT* available for UIBarButtonItem.
I even ran the program with
NSLog(@"class: %@", [item class]);
to make sure I was actually using the correct class. It outputs:
class: UIBarButtonItem
I don't understand why I'm getting the compile error "Request for member "tag" ... et cetera."
What simple mistake am I doing/missing please? I'm about to go insane.
-- Edit --
Believe I figured out a workaround, I set my method to (IBAction) selection: (UIBarButtonItem *) sender. I always thought you could compile anything with any message to id and would only crash at runtime.