pep*_*epe 9 uitableview ios uicollectionview uicollectionviewcell
我正在使用UICollectionView在主视图中生成多个缩略图.
这工作正常,我能够在单元格周围放置边框以及应用边框(角落)半径.
唯一似乎没有坚持的是每个细胞的阴影.
这是我的代码
....
[cell.layer setBorderColor:[UIColor colorWithRed:213.0/255.0f green:210.0/255.0f blue:199.0/255.0f alpha:1.0f].CGColor];
[cell.layer setBorderWidth:1.0f];
[cell.layer setCornerRadius:7.5f];
[cell.layer setShadowOffset:CGSizeMake(0, 1)];
[cell.layer setShadowColor:[[UIColor darkGrayColor] CGColor]];
[cell.layer setShadowRadius:8.0];
[cell.layer setShadowOpacity:0.8];
return cell;
Run Code Online (Sandbox Code Playgroud)
你知道我做错了什么,我能做些什么让阴影展现出来?
归档时间: |
|
查看次数: |
7059 次 |
最近记录: |