Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a prefix to UIImage category method #33

Merged
merged 1 commit into from
Apr 15, 2017
Merged
Show file tree
Hide file tree
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: 2 additions & 2 deletions Sources/LCActionSheet.m
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ - (void)setupView {
cancelButton.titleLabel.font = self.buttonFont;
[cancelButton setTitle:self.cancelButtonTitle forState:UIControlStateNormal];
[cancelButton setTitleColor:self.buttonColor forState:UIControlStateNormal];
[cancelButton setBackgroundImage:[UIImage imageWithColor:self.separatorColor]
[cancelButton setBackgroundImage:[UIImage lc_imageWithColor:self.separatorColor]
forState:UIControlStateHighlighted];
[cancelButton addTarget:self
action:@selector(cancelButtonClicked)
Expand Down Expand Up @@ -546,7 +546,7 @@ - (void)setSeparatorColor:(UIColor *)separatorColor {

self.lineView.backgroundColor = separatorColor;
self.divisionView.backgroundColor = separatorColor;
[self.cancelButton setBackgroundImage:[UIImage imageWithColor:separatorColor]
[self.cancelButton setBackgroundImage:[UIImage lc_imageWithColor:separatorColor]
forState:UIControlStateHighlighted];
[self.tableView reloadData];
}
Expand Down
2 changes: 1 addition & 1 deletion Sources/UIImage+LCActionSheet.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ NS_ASSUME_NONNULL_BEGIN
/**
* Create a image with the color.
*/
+ (nullable instancetype)imageWithColor:(UIColor *)color;
+ (nullable instancetype)lc_imageWithColor:(UIColor *)color;

@end

Expand Down
2 changes: 1 addition & 1 deletion Sources/UIImage+LCActionSheet.m
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

@implementation UIImage (LCActionSheet)

+ (instancetype)imageWithColor:(UIColor *)color {
+ (instancetype)lc_imageWithColor:(UIColor *)color {
CGRect rect = CGRectMake(0.0f, 0.0f, 2.0f, 2.0f);

UIGraphicsBeginImageContext(rect.size);
Expand Down