You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You are not giving much detail but I guess you want to do that.
The custom view you are using for you barButton should be of class UIButton.
Since it is a UIButton you can add target like you would with any UIButton.
UIButton *customButton = [[UIButton alloc] init];
// Add a target
[button addTarget:selfaction:@selector(buttonPressed) forControlEvents:UIControlEventTouchUpInside];
// Create and add our custom BBBadgeBarButtonItem with the custom UIButton
BBBadgeBarButtonItem *barButton = [[BBBadgeBarButtonItem alloc] initWithCustomUIButton:customButton];
I need to add a method to a barButton.
How to do it?
Thanks.
The text was updated successfully, but these errors were encountered: