From 3c102dd00931999d15ab8d0a67af57f7963d2ec0 Mon Sep 17 00:00:00 2001 From: Ben Date: Mon, 8 Dec 2014 00:32:57 +0800 Subject: [PATCH] Add a prefix to the UIImage category method --- Pod/Classes/M2DWebViewController/M2DWebViewController.m | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Pod/Classes/M2DWebViewController/M2DWebViewController.m b/Pod/Classes/M2DWebViewController/M2DWebViewController.m index 00dc3b7..5f5f1b1 100644 --- a/Pod/Classes/M2DWebViewController/M2DWebViewController.m +++ b/Pod/Classes/M2DWebViewController/M2DWebViewController.m @@ -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]; @@ -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;