I'am trying to setup a png image as my tableview's background. With the following code all are fine! But only on iPhone Simulator. If I try to run the application on an iPhone device the background of tableview remains white (or clear). Do you thing thing that is something about the way I tried to set the background color. I have been trying many ways until the following, but all have the same issue.
self.tableView.backgroundColor = [UIColor clearColor];
self.tableView.opaque = NO;
self.tableView.backgroundView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"TableViewBackground.png"]];
Thank you in advance!
[[UIImageView alloc] initWithImage:[UIImage imageNamed:@"TableViewBackground.png"]];
return on the device? Dump it to the console, please. – Calliopepo [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"TableViewBackground.png"]]
;) clean/rebuild might help. – KennieNSLog(@"imageView: %@", [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"TableViewBackground.png"]]);
– Calliope