How to give #3f51b5 color code programmatically for shadow color in ios -


i want make shadow color #3f51b5.

how can that. hope help. type cannot use that.

cell.layer.shadowcolor = [uicolor purplecolor].cgcolor; 

you need set shadow first

cell.layer.shadowradius=8; cell.layer.shadowoffset=cgsizemake(-1, -1);// make top left shadow cell.layer.shadowopacity=1; cell.layer.shadowcolor = [uicolor colorwithred:0.2471 green:0.3176 blue:0.7098 alpha:1.0].cgcolor; 

Comments