UIView change background color to image
I managed to successfully change some of my UIView background to a custom image using
`self.view.backgroundColor = [UIColor colorWithPatternImage:[UIImage imageNamed:@"myCustomBackground.jpg"]];`


But it does not work on a particular view in a controller that is presented modally as such,


    LoginViewController *loginViewController = [[LoginViewController alloc] initWithNibName:@"LoginViewController" bundle:[NSBundle mainBundle]];
    UINavigationController *navController = [[UINavigationController alloc] initWithRootViewController:loginViewController];  	
    navController.modalTransitionStyle = UIModalTransitionStyleFlipHorizontal;
    navController.navigationBar.barStyle = UIBarStyleBlack;
    [self presentModalViewController:navController animated:NO];
    [loginViewController release];
    [navController release];

It seems like `self.view` inside this controller is behind the view it was showing.

UIView change background color to image
===

I managed to successfully change some of my UIView background to a custom image using
`self.view.backgroundColor = [UIColor colorWithPatternImage:[UIImage imageNamed:@"myCustomBackground.jpg"]];`


But it does not work on a particular view in a controller that is presented modally as such,


    LoginViewController *loginViewController = [[LoginViewController alloc] initWithNibName:@"LoginViewController" bundle:[NSBundle mainBundle]];
    UINavigationController *navController = [[UINavigationController alloc] initWithRootViewController:loginViewController];  	
    navController.modalTransitionStyle = UIModalTransitionStyleFlipHorizontal;
    navController.navigationBar.barStyle = UIBarStyleBlack;
    [self presentModalViewController:navController animated:NO];
    [loginViewController release];
    [navController release];

It seems like `self.view` inside this controller is behind the view it was showing.
