Commit 607bb32d91c6b2b2ac0601f8fa1b1b2dea8f9c63
1 parent
8ed70d33
短剧主页- 全部剧集位置调整; 图片比例填充
Showing
2 changed files
with
2 additions
and
1 deletions
metaCode/Classes/Main/HomePages/Controller/PlayletHomePage/CNLivePlayletHomePageController.swift
| @@ -167,7 +167,7 @@ class CNLivePlayletHomePageController:CNLiveBaseViewController, UITableViewDataS | @@ -167,7 +167,7 @@ class CNLivePlayletHomePageController:CNLiveBaseViewController, UITableViewDataS | ||
| 167 | } | 167 | } |
| 168 | func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat { | 168 | func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat { |
| 169 | if indexPath.section == 0{ | 169 | if indexPath.section == 0{ |
| 170 | - return 15+147+20+self.jianjieLblHeight+25+39+23.5+15.5 | 170 | + return 15+147+20+self.jianjieLblHeight+25+39+23.5+15.5+18.5 |
| 171 | }else{ | 171 | }else{ |
| 172 | return 75+12*2 | 172 | return 75+12*2 |
| 173 | } | 173 | } |
metaCode/Classes/Main/HomePages/View/PlayletHomePage/CNLivePlayletHomePageCell.swift
| @@ -25,6 +25,7 @@ class CNLivePlayletHomePageCell:UITableViewCell{ | @@ -25,6 +25,7 @@ class CNLivePlayletHomePageCell:UITableViewCell{ | ||
| 25 | lazy var iconImgView :UIImageView = { | 25 | lazy var iconImgView :UIImageView = { |
| 26 | let iconImgView = UIImageView(frame: CGRect(x: 15, y: 12, width: 57, height: 75)) | 26 | let iconImgView = UIImageView(frame: CGRect(x: 15, y: 12, width: 57, height: 75)) |
| 27 | iconImgView.layer.cornerRadius = 5 | 27 | iconImgView.layer.cornerRadius = 5 |
| 28 | + iconImgView.contentMode = .scaleAspectFill | ||
| 28 | iconImgView.clipsToBounds = true | 29 | iconImgView.clipsToBounds = true |
| 29 | return iconImgView | 30 | return iconImgView |
| 30 | }() | 31 | }() |