Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/objective-c/24.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Objective c 如何为iOS 8中的显示视图控制器设置clearColor?_Objective C_Ios8 - Fatal编程技术网

Objective c 如何为iOS 8中的显示视图控制器设置clearColor?

Objective c 如何为iOS 8中的显示视图控制器设置clearColor?,objective-c,ios8,Objective C,Ios8,我在另一个UIViewController上提供了一个clearColor UIViewController,它在iOS 7上运行良好。但在iOS 8中,我不能再显示clearColor了。我试过这些东西: 将modalPresentationStyle设置为UIModalPresentationCurrentContext 将窗口的颜色设置为clearColor 以上这些都不起作用 有人能解决我的问题吗?您看过UIPresentationController吗?他们在iOS8中更改了视图控制器

我在另一个UIViewController上提供了一个clearColor UIViewController,它在iOS 7上运行良好。但在iOS 8中,我不能再显示clearColor了。我试过这些东西:

将modalPresentationStyle设置为UIModalPresentationCurrentContext 将窗口的颜色设置为clearColor 以上这些都不起作用


有人能解决我的问题吗?

您看过UIPresentationController吗?他们在iOS8中更改了视图控制器的显示方式。@dasdom谢谢,我会试试。如果您找到解决方案,请在这里发布。由于iOS 7上没有UIPresentationController,了解您是如何将这两种方法集成在一起的也很有意思。