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

c++ - Delete matches in OpenCV (Keypoints and descriptors) -

java - Could not locate OpenAL library -

sorting - opencl Bitonic sort with 64 bits keys -