Created
February 1, 2011 19:54
-
-
Save ddemaree/806526 to your computer and use it in GitHub Desktop.
Yes, @polgfred, some people do align setters in languages other than Ruby. :)
This file contains 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
#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