ios - Xcode view transparent background without influencing subviews -


i want program custom keyboard textfield. background of keyboard should transparent, when try set alpha of keyboardview, alpha of subviews changes too. how can change keyboard's alpha only? don't want set [uicolor clearcolor].

keyboardview.backgroundcolor = [uicolor colorwithred:0 green:0 blue:0 alpha:0.5]; keyboardview.alpha = 0.2; keyboardview.backgroundcolor = [[uicolor clearcolor] colorwithalphacomponent]; 

changing view's alpha alters view , it's subviews.

if want non-drawn parts of view show what's underneath, set view's opaque flag no , set background color clearcolor.


Comments

Popular posts from this blog

node.js - How to mock a third-party api calls in the backend -

node.js - Why do I get "SOCKS connection failed. Connection not allowed by ruleset" for some .onion sites? -

matlab - 0-by-1 sym - What do I need to change in order to get proper symbolic results? -