0

我正在使用它来关闭视图控制器。

[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;

但它在显示视图控制器之前仍然显示白屏,我什至将所有组件更改为不同的颜色,以查看它是否是组件但屏幕保持白色。

4

1 回答 1

0

查看此代码:-

self.view.backgroundColor = [UIColor clearColor];
self.modalPresentationStyle = UIModalPresentationCurrentContext;
[self presentModalViewController:modalVC animated:YES];
于 2013-10-15T10:07:19.467 回答