Reputation: 1008
in ios5 i implemented my UIImageView like this:
UIImageView *imageView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"FirstScreen.png"]];
imageView.frame = CGRectMake(0.0,0.0,[GeneralUtils screenWidth],[GeneralUtils screenHeight]);
// !!!!!!!!!!!!!
[self.view addSubview: imageView];
[self.view sendSubviewToBack:imageView];
[self.view sendSubviewToBack:self.tableView];
Everything´s fine...But now in ios6 my UIImageView is not showing anymore....
Upvotes: 0
Views: 220
Reputation: 20551
try bellow code..
CGRect screenBounds = [[UIScreen mainScreen] bounds];
UIImageView *imageView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"FirstScreen.png"]];
imageView.frame = screenBounds;
[self.view addSubview:imageView];
[self.view bringSubviewToFront:self.tableView];
[self.tableView setBackgroundColor:[UIColor clearColor]];
Upvotes: 1
Reputation: 1008
Solved it by setting
[self.tableView setBackgroundView: nil];
I think my tableView was hiding the Image!
Upvotes: 0