Change function name
This commit is contained in:
parent
5a5dfb7bb2
commit
ade79f4a83
2 changed files with 5 additions and 6 deletions
|
@ -1,5 +1,5 @@
|
|||
@import UIKit;
|
||||
|
||||
@interface SPRootViewController : UIViewController
|
||||
- (CGImageRef)getImage:(NSString *)named;
|
||||
- (CGImageRef)getImageNamed:(NSString *)filename;
|
||||
@end
|
||||
|
|
|
@ -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];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue