Commit 0e91e749ac9f53c7e1d7a4646a90afcf44f6750d
1 parent
ec409e98
首页背景图显示不全的问题
Showing
11 changed files
with
21 additions
and
13 deletions
metaCode/Classes/Main/HuBiLieHomePage/Controller/CNLiveTVHomeViewController.swift
| ... | ... | @@ -38,14 +38,14 @@ class CNLiveTVHomeViewController:CNLiveBaseViewController, UITableViewDataSource |
| 38 | 38 | tableView.register(CNLiveHomeTwoShopCell.self, forCellReuseIdentifier: kCNLiveHomeTwoShopCellIdentifier) |
| 39 | 39 | tableView.register(CNLiveHomeShopCategoryCell.self, forCellReuseIdentifier: kCNLiveHomeShopCategoryCellIdentifier) |
| 40 | 40 | |
| 41 | - tableView.backgroundColor = .white | |
| 41 | + tableView.backgroundColor = .clear | |
| 42 | 42 | return tableView |
| 43 | 43 | }() |
| 44 | 44 | |
| 45 | 45 | |
| 46 | 46 | lazy var iconBgImgView :UIImageView = { |
| 47 | 47 | let iconImgView = UIImageView(frame: CGRect(x: 0, y: 0, width: KSreenWidth, height: 295*KSreenWidth/375)) |
| 48 | - iconImgView.image = UIImage(named: "yingshibg.jpg") | |
| 48 | + iconImgView.image = UIImage(named: "yingshibg") | |
| 49 | 49 | iconImgView.contentMode = .scaleAspectFill |
| 50 | 50 | return iconImgView |
| 51 | 51 | }() | ... | ... |
metaCode/Classes/Main/HuBiLieHomePage/Util/CNLivePlayerTool.swift
metaCode/Classes/Main/HuBiLieHomePage/View/Home/Home/CNLiveHomeADCell.swift
| ... | ... | @@ -139,7 +139,8 @@ class CNLiveHomeADCell: UITableViewCell ,FSPagerViewDataSource,FSPagerViewDelega |
| 139 | 139 | override init(style: UITableViewCell.CellStyle, reuseIdentifier: String?) { |
| 140 | 140 | super.init(style: style, reuseIdentifier: reuseIdentifier) |
| 141 | 141 | self.selectionStyle = .none |
| 142 | - contentView.backgroundColor = .white | |
| 142 | + contentView.backgroundColor = .clear | |
| 143 | + self.backgroundColor = .clear | |
| 143 | 144 | contentView.clipsToBounds = true |
| 144 | 145 | |
| 145 | 146 | self.contentView.addSubview(self.viewPager) | ... | ... |
metaCode/Classes/Main/HuBiLieHomePage/View/Home/Home/CNLiveHomeFollowCell.swift
| ... | ... | @@ -75,7 +75,8 @@ class CNLiveHomeFollowCell:UITableViewCell{ |
| 75 | 75 | } |
| 76 | 76 | |
| 77 | 77 | private func setupUI() { |
| 78 | - contentView.backgroundColor = .white | |
| 78 | + contentView.backgroundColor = .clear | |
| 79 | + self.backgroundColor = .clear | |
| 79 | 80 | self.contentView.addSubview(self.followImgView) |
| 80 | 81 | |
| 81 | 82 | self.contentView.clipsToBounds = true | ... | ... |
metaCode/Classes/Main/HuBiLieHomePage/View/Home/Home/CNLiveHomeLanmuCell.swift
metaCode/Classes/Main/HuBiLieHomePage/View/Home/Home/CNLiveHomeOneBigTwoSmallCell.swift
| ... | ... | @@ -279,7 +279,8 @@ class CNLiveHomeOneBigTwoSmallCell:UITableViewCell{ |
| 279 | 279 | } |
| 280 | 280 | |
| 281 | 281 | private func setupUI() { |
| 282 | - contentView.backgroundColor = .white | |
| 282 | + contentView.backgroundColor = .clear | |
| 283 | + self.backgroundColor = .clear | |
| 283 | 284 | |
| 284 | 285 | self.contentView.addSubview(self.titleLabel) |
| 285 | 286 | self.contentView.addSubview(self.detailBtn) | ... | ... |
metaCode/Classes/Main/HuBiLieHomePage/View/Home/Home/CNLiveHomeShopCategoryCell.swift
| ... | ... | @@ -36,7 +36,8 @@ class CNLiveHomeShopCategoryCell:UITableViewCell{ |
| 36 | 36 | } |
| 37 | 37 | |
| 38 | 38 | private func setupUI() { |
| 39 | - contentView.backgroundColor = .white | |
| 39 | + contentView.backgroundColor = .clear | |
| 40 | + self.backgroundColor = .clear | |
| 40 | 41 | self.contentView.clipsToBounds = true |
| 41 | 42 | } |
| 42 | 43 | ... | ... |
metaCode/Classes/Main/HuBiLieHomePage/View/Home/Home/CNLiveHomeTwoDuanjuCell.swift
| ... | ... | @@ -58,7 +58,8 @@ class CNLiveHomeTwoDuanjuCell:UITableViewCell{ |
| 58 | 58 | } |
| 59 | 59 | |
| 60 | 60 | private func setupUI() { |
| 61 | - contentView.backgroundColor = .white | |
| 61 | + contentView.backgroundColor = .clear | |
| 62 | + self.backgroundColor = .clear | |
| 62 | 63 | self.contentView.addSubview(self.titleLabel) |
| 63 | 64 | self.contentView.addSubview(self.detailBtn) |
| 64 | 65 | ... | ... |
metaCode/Classes/Main/HuBiLieHomePage/View/Home/Home/CNLiveHomeTwoHengTuCell.swift
| ... | ... | @@ -57,7 +57,8 @@ class CNLiveHomeTwoHengTuCell: UITableViewCell { |
| 57 | 57 | override init(style: UITableViewCell.CellStyle, reuseIdentifier: String?) { |
| 58 | 58 | super.init(style: style, reuseIdentifier: reuseIdentifier) |
| 59 | 59 | self.selectionStyle = .none |
| 60 | - contentView.backgroundColor = .white | |
| 60 | + contentView.backgroundColor = .clear | |
| 61 | + self.backgroundColor = .clear | |
| 61 | 62 | contentView.clipsToBounds = true |
| 62 | 63 | } |
| 63 | 64 | |
| ... | ... | @@ -87,6 +88,7 @@ class CNLiveHomeTwoHengTuCell: UITableViewCell { |
| 87 | 88 | payIconView.image = UIImage(named: "home_player_pay") |
| 88 | 89 | payIconView.frame = CGRect(x: 0, y: 0, width: 26, height: 15) |
| 89 | 90 | imageView.addSubview(payIconView) |
| 91 | + payIconView.isHidden = true | |
| 90 | 92 | |
| 91 | 93 | let grayBgView = UIView(frame: CGRect(x: imageView.left, y: imageView.bottom, width: imageView.width, height: grayH)) |
| 92 | 94 | grayBgView.backgroundColor = HexColor("#FAFAFA") | ... | ... |
metaCode/Classes/Main/HuBiLieHomePage/View/Home/Home/CNLiveHomeTwoShopCell.swift
| ... | ... | @@ -46,7 +46,8 @@ class CNLiveHomeTwoShopCell: UITableViewCell { |
| 46 | 46 | override init(style: UITableViewCell.CellStyle, reuseIdentifier: String?) { |
| 47 | 47 | super.init(style: style, reuseIdentifier: reuseIdentifier) |
| 48 | 48 | self.selectionStyle = .none |
| 49 | - contentView.backgroundColor = .white | |
| 49 | + contentView.backgroundColor = .clear | |
| 50 | + self.backgroundColor = .clear | |
| 50 | 51 | contentView.clipsToBounds = true |
| 51 | 52 | contentView.addSubview(self.titleLabel) |
| 52 | 53 | contentView.addSubview(self.detailBtn) | ... | ... |
metaCode/Classes/Main/HuBiLieHomePage/View/Home/Home/CNLiveHomeYingshiBannerCell.swift
| ... | ... | @@ -68,7 +68,8 @@ class CNLiveHomeYingshiBannerCell: UITableViewCell ,FSPagerViewDataSource,FSPage |
| 68 | 68 | override init(style: UITableViewCell.CellStyle, reuseIdentifier: String?) { |
| 69 | 69 | super.init(style: style, reuseIdentifier: reuseIdentifier) |
| 70 | 70 | self.selectionStyle = .none |
| 71 | - contentView.backgroundColor = .white | |
| 71 | + contentView.backgroundColor = .clear | |
| 72 | + self.backgroundColor = .clear | |
| 72 | 73 | contentView.clipsToBounds = true |
| 73 | 74 | |
| 74 | 75 | self.contentView.addSubview(self.viewPager) | ... | ... |