我是 iOS 开发的新手。我正在使用以下代码:
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];
当我将 askViewcontroller 推到导航时,它会向我显示带有黑屏动画的 AskViewcontroller。我想将该黑屏更改为白色或任何其他彩色屏幕。
任何帮助表示赞赏。