Commit 6ba2f5fc25cccf0c59d012bf2f2094f7e87fce64
1 parent
622f638b
电商分类icon 圆角
Showing
1 changed file
with
2 additions
and
0 deletions
metaCode/Classes/Main/HuBiLieHomePage/View/Home/Home/CNLiveHomeShopCategoryCell.swift
| ... | ... | @@ -53,6 +53,8 @@ class CNLiveHomeShopCategoryCell:UITableViewCell{ |
| 53 | 53 | let imgY:CGFloat = 0.0 |
| 54 | 54 | let iconImgView = UIImageView(frame: CGRect(x: imgX, y: imgY, width: imgWH, height: imgWH)) |
| 55 | 55 | iconImgView.contentMode = .scaleAspectFill |
| 56 | + iconImgView.layer.cornerRadius = 0.5*imgWH | |
| 57 | + iconImgView.clipsToBounds = true | |
| 56 | 58 | iconImgView.tag = 1000+idx |
| 57 | 59 | if mdl.title == "全部商品"{ |
| 58 | 60 | iconImgView.image = UIImage(named: "home_allProduct") | ... | ... |