Created
July 14, 2014 12:17
-
-
Save jontelang/be92130e24f370bd898c to your computer and use it in GitHub Desktop.
PianoPasscodeLogoCell.m
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include "_own_/Preferences5/Preferences.h" | |
| @interface PianoPasscodeLogoCell : PSTableCell <PreferencesTableCustomView> { | |
| UIImageView *_image; | |
| } | |
| @end | |
| @implementation PianoPasscodeLogoCell | |
| - (id)initWithSpecifier:(PSSpecifier *)specifier | |
| { | |
| self = [super initWithStyle:UITableViewCellStyleDefault reuseIdentifier:@"Cell" specifier:specifier]; | |
| if (self) | |
| { | |
| CGRect frame = [self frame]; | |
| _image = [[UIImageView alloc] initWithImage:[[UIImage alloc] initWithContentsOfFile:@"/Library/PianoPasscode/pianoprefs.png"]]; | |
| [_image setCenter:CGPointMake(160,50)]; | |
| [self addSubview:_image]; | |
| [_image release]; | |
| } | |
| return self; | |
| } | |
| - (float)preferredHeightForWidth:(float)arg1 | |
| { | |
| // Return a custom cell height. | |
| return 100.f; | |
| } | |
| @end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment