]> git.saurik.com Git - cydia.git/blobdiff - CyteKit/TableViewCell.mm
libapt-pkg needs to be statically linked on armv6.
[cydia.git] / CyteKit / TableViewCell.mm
index 827440bf988288194539e0daf0b8eeac07281c09..1b9152eeffa3aedbec57abfaf1c0e3955c2bffd1 100644 (file)
     bool highlighted_;
 }
 
+- (instancetype) initWithFrame:(CGRect)frame reuseIdentifier:(NSString *)reuseIdentifier {
+    if ((self = [super initWithFrame:frame reuseIdentifier:reuseIdentifier]) != nil) {
+        UIView *content([self contentView]);
+        CGRect bounds([content bounds]);
+
+        self.content = [[[CyteTableViewCellContentView alloc] initWithFrame:bounds] autorelease];
+        [self.content setAutoresizingMask:(UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight)];
+        [content addSubview:self.content];
+
+        [self.content setDelegate:(id<CyteTableViewCellDelegate>)self];
+    } return self;
+}
+
 - (void) _updateHighlightColorsForView:(UIView *)view highlighted:(BOOL)highlighted {
     if (view == (UIView *) content_)
         highlighted_ = highlighted;