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

c# - Unity IoC Lifetime per HttpRequest for UserStore -

Change the color of an oval at click in Java AWT -

I am trying to solve the error message 'incompatible ranks 0 and 1 in assignment' in a fortran 95 program. -