Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Yes, @polgfred, some people do align setters in languages other than Ruby. :)
#import "GBItemDetailCell.h"
@implementation GBItemDetailCell
- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
if (self) {
// Text view for item value
// Dimensions are identical to the value label;
CGRect frameForTextView = CGRectMake(52, 4, 220, 42.0);
GBTextView *textView = [[[GBTextView alloc] initWithFrame:frameForTextView] autorelease];
textView.backgroundColor = [UIColor clearColor];
textView.font = [UIFont systemFontOfSize:15.0];
textView.hidden = YES;
textView.scrollEnabled = NO;
textView.editable = NO;
textView.textAlignment = UITextAlignmentLeft;
self.textView = textView;
[self.contentView addSubview:self.textView];
return self;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment