1

基本的なUIAlertViewの場合、警告ダイアログが表示されているときに周囲の画面が暗くなるのを防ぐ方法を知っている人はいますか?

iPhone SDK 6.0 では、UIAlertView.h をチェックしており、ビット フィールドのセットを持つこのプライベート構造体 _modalViewFlags があり、その中にdontDimBackgroundがあります。私が探しているまさにその機能にフラグを格納しているようです。これを設定/リセットするパブリック メソッドが見つかりません。

4

1 に答える 1

1

There is no way to prevent the dimming of the background without using private APIs. You'll probably want to use a 3rd party alert view that allows more customizing.

WCAlertView includes options to set the background gradient color. If you set it to be clearColor, it should do what you want.

于 2012-12-12T17:37:36.907 に答える