Skip to content

Commit

Permalink
Get tint color for actionsheet buttons from application window
Browse files Browse the repository at this point in the history
  • Loading branch information
Mau04 committed May 20, 2014
1 parent 1c755f6 commit 389807e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Pickers/AbstractActionSheetPicker.m
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,12 @@ - (UIBarButtonItem *)createToolbarLabelWithTitle:(NSString *)aTitle {
}

- (UIBarButtonItem *)createButtonWithType:(UIBarButtonSystemItem)type target:(id)target action:(SEL)buttonAction {
return [[UIBarButtonItem alloc] initWithBarButtonSystemItem:type target:target action:buttonAction];

UIBarButtonItem *button = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:type target:target action:buttonAction];
[button setTintColor: [[UIApplication sharedApplication] keyWindow].tintColor];

return button;

}

#pragma mark - Utilities and Accessors
Expand Down

0 comments on commit 389807e

Please sign in to comment.