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

php - How to serve a file for download on WordPress -

how to share virtual sharepoint server and get it in host windows and visual studio? -