Skip to content

Commit

Permalink
Merge pull request #1 from Mau04/buttonColor
Browse files Browse the repository at this point in the history
Get tint color for actionsheet buttons from application window
  • Loading branch information
Mau04 committed May 20, 2014
2 parents 1c755f6 + 389807e commit 22b148e
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 22b148e

Please sign in to comment.