Skip to content

Instantly share code, notes, and snippets.

@jontelang
Created July 14, 2014 12:17
Show Gist options
  • Save jontelang/be92130e24f370bd898c to your computer and use it in GitHub Desktop.
Save jontelang/be92130e24f370bd898c to your computer and use it in GitHub Desktop.
PianoPasscodeLogoCell.m
#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