呈现自定义模态视图时,如何 "fade out" 背景中控件的颜色?

When presenting a custom modal view, how do I "fade out" the colors of the controls in the background?

这似乎是一个非常简单的问题,但我找不到答案。

在 iOS 7 中,当呈现不占用所有屏幕的模态视图控制器时,例如 UIAlertController,它会淡出背景中的颜色,比如说、蓝色、灰色,表示无法与之互动。

我该怎么做?

将某些视图的 tintAdjustmentMode 设置在层次结构的较高位置。调光将向下传播。