开发者

Cocoa touch dimming background darker

开发者 https://www.devze.com 2023-01-24 23:44 出处:网络
Hey! I am making an app with a slider which slides out from the bottom and I would like to make other parts of开发者_如何学C the app a bit darker to show that the picker is the active component, like

Hey! I am making an app with a slider which slides out from the bottom and I would like to make other parts of开发者_如何学C the app a bit darker to show that the picker is the active component, like when alertbox comes, the background darkens. How do archieve this?


Overlay the elements you want to darken with a view that has a semi-transparent dark background (e.g. a black background with an alpha value of 0.5).

0

精彩评论

暂无评论...
验证码 换一张
取 消