[英]How to remove split second white screen between dismissing a view controller and loading a new view controller
我正在使用它來關閉視圖控制器。
[self dismissViewControllerAnimated:YES completion:nil];
self.modalTransitionStyle = UIModalTransitionStyleCrossDissolve;
self.view.alpha = 0.0;
[UIView animateWithDuration:0
animations:^{self.parentViewController.view.alpha = 1.0;}];
self.parentViewController.view.alpha = 1.0;
但是在顯示視圖控制器之前,它仍然顯示白色屏幕,我什至將所有組件更改為其他顏色,以查看它是否是組件,但屏幕保持白色。
看看這段代碼:
self.view.backgroundColor = [UIColor clearColor];
self.modalPresentationStyle = UIModalPresentationCurrentContext;
[self presentModalViewController:modalVC animated:YES];
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.