Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions IQKeyboardManager/IQToolbar/IQBarButtonItem.m
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,10 @@ - (instancetype)initWithBarButtonSystemItem:(UIBarButtonSystemItem)systemItem ta

-(void)setTarget:(nullable id)target action:(nullable SEL)action
{
// Call parent implementation to ensure native UIBarButtonItem action mechanism works
[super setTarget:target action:action];

// Also create NSInvocation for backward compatibility with existing IQKeyboardManager code
NSInvocation *invocation = nil;

if (target && action)
Expand Down