diff --git a/SPRootViewController.h b/SPRootViewController.h index e895b3b..7a7339e 100644 --- a/SPRootViewController.h +++ b/SPRootViewController.h @@ -1,5 +1,5 @@ @import UIKit; @interface SPRootViewController : UIViewController -- (CGImageRef)getImage:(NSString *)named; +- (CGImageRef)getImageNamed:(NSString *)filename; @end diff --git a/SPRootViewController.m b/SPRootViewController.m index c944390..49c71e4 100644 --- a/SPRootViewController.m +++ b/SPRootViewController.m @@ -6,7 +6,6 @@ #import "CAStateController.h" @interface SPRootViewController () -- (CGImageRef)getImage:(NSString *)named; @end @implementation SPRootViewController @@ -52,9 +51,9 @@ // Have our wonderful, extremely 2011/2012-esque metal design. // It's local! There's no reason not to. [[package publishedObjectWithName:@"shredderFront"] - setContents:(id)[self getImage:@"ShredderMetal"]]; + setContents:(id)[self getImageNamed:@"ShredderMetal"]]; [[package publishedObjectWithName:@"shredderBack"] - setContents:(id)[self getImage:@"ShredderMetal"]]; + setContents:(id)[self getImageNamed:@"ShredderMetal"]]; // Set what we're shredding. [[package publishedObjectWithName:@"cardFrontUnshredded"] @@ -65,10 +64,10 @@ setContents:(id)[[UIColor blueColor] CGColor]]; } -- (CGImageRef)getImage:(NSString *)named { +- (CGImageRef)getImageNamed:(NSString *)baseName { NSBundle *passKitBundle = [NSBundle bundleForClass:NSClassFromString(@"PKPass")]; - NSString *filename = [NSString stringWithFormat:@"%@@2x", named]; + NSString *filename = [NSString stringWithFormat:@"%@@2x", baseName]; NSString *path = [passKitBundle pathForResource:filename ofType:@"png"]; UIImage *image = [UIImage imageWithContentsOfFile:path];