layer - iOS - CALayer setShadowColor not working -


i need set bottom shadow button. have shadow somehow cannot change shadow color. doing wrong? here code:

[self.buttonsbar.layer setshadowcolor:[uicolor colorwithred:227.0f/255 green:233.0f/255 blue:239.0f/255 alpha:1.0f].cgcolor]; [self.buttonsbar.layer setshadowopacity:1]; [self.buttonsbar.layer setshadowradius:1]; [self.buttonsbar.layer setshadowoffset:cgsizemake(0, 1)]; 

make sure self.buttonsbar.clipstobounds = no;
make sure self.buttonsbar.layer.maskstobounds = no;
first try large radius , offset make sure see them reduce numbers, not easy see shadow depending on background colors ...


Comments

Popular posts from this blog

PHPMotion implementation - URL based videos (Hosted on separate location) -

javascript - Using Windows Media Player as video fallback for video tag -

c# - Unity IoC Lifetime per HttpRequest for UserStore -