I am new to iOS development. I am using the following code:
AskViewController *askController=[[AskViewController alloc]initWithNibName:@"AskViewController" bundle:nil];
askController.view.transform = CGAffineTransformMakeScale(0.01, 0.01);
[UIView beginAnimations:@"animationExpand" context:NULL];
[UIView setAnimationDuration:0.5f];
[UIView setAnimationCurve:UIViewAnimationOptionOverrideInheritedDuration];
askController.view.transform=CGAffineTransformMakeScale(1, 1);
[UIView setAnimationDelegate:self];
[UIView commitAnimations];
[self.navigationController pushViewController:askController animated:NO];
When I push askViewcontroller to the navigation, It shows me the AskViewcontroller with animation with black screen. I want to change that black screen to white or any other color Screen.
Any help is appreciated.
in didFinishLaunchingWithOptions method of your app delegate, add this line :
self.window.backgroundColor = [UIColor greenColor];