Skip to content

Commit

Permalink
Merge pull request BlocksKit#296 from xingheng/master
Browse files Browse the repository at this point in the history
[UIBarButtomItem] Replace self pointer with sender for forwarding the event sender
  • Loading branch information
zwaldowski committed Jun 24, 2015
2 parents 1147b97 + eb78385 commit 2584b5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion BlocksKit/UIKit/UIBarButtonItem+BlocksKit.m
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ - (id)bk_initWithTitle:(NSString *)title style:(UIBarButtonItemStyle)style handl
- (void)bk_handleAction:(UIBarButtonItem *)sender
{
void (^block)(id) = objc_getAssociatedObject(self, BKBarButtonItemBlockKey);
if (block) block(self);
if (block) block(sender);
}

@end

0 comments on commit 2584b5c

Please sign in to comment.