Skip to content

Instantly share code, notes, and snippets.

@horvath
Created August 21, 2009 18:44
Show Gist options
  • Save horvath/172312 to your computer and use it in GitHub Desktop.
Save horvath/172312 to your computer and use it in GitHub Desktop.
- (void)layoutSubviews {
[super layoutSubviews];
CGRect oldFrame = self.bounds;
self.bounds = CGRectMake(oldFrame.origin.x, oldFrame.origin.y,
oldFrame.size.width, 150.0);
self.detailTextLabel.bounds = CGRectMake(self.detailTextLabel.bounds.origin.x,
self.detailTextLabel.bounds.origin.y, self.detailTextLabel.bounds.size.width,
120.0);
[self setBackgroundColor:[UIColor redColor]];
[self.textLabel setBackgroundColor:[UIColor blueColor]];
[self.detailTextLabel setBackgroundColor:[UIColor clearColor]];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment