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
Post a Comment