NSTableView background image


/ Published in: Objective C
Save to your folder(s)



Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.