Skip to content

Commit

Permalink
Add a prefix to the UIImage category method
Browse files Browse the repository at this point in the history
  • Loading branch information
bcylin committed Dec 7, 2014
1 parent 9b31542 commit 3c102dd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Pod/Classes/M2DWebViewController/M2DWebViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ typedef NS_ENUM(NSUInteger, ArrorIconDirection) {

@implementation UIImage (M2DArrowIcon)

+ (UIImage *)arrowIconWithDirection:(ArrorIconDirection)direction size:(CGSize)size
+ (UIImage *)m2d_arrowIconWithDirection:(ArrorIconDirection)direction size:(CGSize)size
{
if (CGSizeEqualToSize(size, CGSizeZero)) {
return [[UIImage alloc] init];
Expand Down Expand Up @@ -117,8 +117,8 @@ - (void)viewWillAppear:(BOOL)animated
[self.navigationController setToolbarHidden:NO animated:YES];
if (goBackButton_ == nil) {
NSArray *toolbarItems = nil;
goBackButton_ = [[UIBarButtonItem alloc] initWithImage:[UIImage arrowIconWithDirection:ArrorIconDirectionLeft size:M2DArrorIconSize] style:UIBarButtonItemStylePlain target:self action:@selector(goBack:)];
goForwardButton_ = [[UIBarButtonItem alloc] initWithImage:[UIImage arrowIconWithDirection:ArrorIconDirectionRight size:M2DArrorIconSize] style:UIBarButtonItemStylePlain target:self action:@selector(goForward:)];
goBackButton_ = [[UIBarButtonItem alloc] initWithImage:[UIImage m2d_arrowIconWithDirection:ArrorIconDirectionLeft size:M2DArrorIconSize] style:UIBarButtonItemStylePlain target:self action:@selector(goBack:)];
goForwardButton_ = [[UIBarButtonItem alloc] initWithImage:[UIImage m2d_arrowIconWithDirection:ArrorIconDirectionRight size:M2DArrorIconSize] style:UIBarButtonItemStylePlain target:self action:@selector(goForward:)];
UIBarButtonItem *space = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemFlexibleSpace target:nil action:nil];
UIBarButtonItem *fixedSpace19 = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemFixedSpace target:nil action:nil];
fixedSpace19.width = 19;
Expand Down

0 comments on commit 3c102dd

Please sign in to comment.