俺們家設(shè)計出了個醬紫的設(shè)計圖兰迫,好難啊~這叫我咋整葱淳?找度娘試著弄唄~
最終實現(xiàn)了乃正,效果是這個樣子滴~看著還可以吧~
廢話不多說躏啰,上代碼:
self.image.layer.cornerRadius = 32.5;
self.image.clipsToBounds = YES;
self.image.layer.borderWidth = 3;
self.image.layer.borderColor =[UIColor whiteColor].CGColor ;
self.image.layer.shadowOffset = CGSizeMake(0, 2.);
self.image.layer.shadowRadius = 100.0;
self.image.layer.shadowColor = [kColor_d8d8d8 CGColor];
那個100我也不知道咋解釋,個人理解是投影的半徑且预,反正比圖片半徑大就行了~如果你的看不見槽袄?額~你給你的image加個bgcolor再看看吧~