Posted By

Mazzaroth on 02/19/11


Tagged

image background iphone NSTableView


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

athanhcong
cnathan


NSTableView background image


 / Published in: Objective C
 

  1. NSString *backgroundPath = [[NSBundle mainBundle] pathForResource:@"Image-name" ofType:@"png"];
  2. UIImage *backgroundImage = [UIImage imageWithContentsOfFile:backgroundPath];
  3. UIColor *backgroundColor = [[UIColor alloc] initWithPatternImage:backgroundImage];
  4. self.tableView.backgroundColor = backgroundColor;
  5. [backgroundColor release];
  6.  

Report this snippet  

You need to login to post a comment.