Skip to content

Instantly share code, notes, and snippets.

@ddemaree
Created February 1, 2011 19:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ddemaree/806526 to your computer and use it in GitHub Desktop.
Save ddemaree/806526 to your computer and use it in GitHub Desktop.
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;
}
@end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment