I created a group called img and put an image there that I wanted to appear as the background.
But instead, the background turned all black.
Here is the code I used for this. I put the code in the viewDidAppear method
self.view.backgroundColor = [[UIColor alloc] initWithPatternImage:[UIImage imageNamed:@"img/building.png"]];
any thought on what I might have done wrong?
Use
[self.view setBackgroundColor:[UIColor colorWithPatternImage:[UIImage imageNamed:@"building.png"]];instead