Commit c96a13f6ba6fd80bbde5e2d5ad389c0cea025fa1
1 parent
8a0e8529
简历 预览 的工作记录,获奖 图片填充模式scaleAspectFit
Showing
3 changed files
with
5 additions
and
5 deletions
metaCode/Classes/Main/HomePage/View/DigitalAuthViews/Vitae/Work/CNLiveVitaeWorkCell.swift
| ... | ... | @@ -321,7 +321,7 @@ class CNLiveVitaeWorkCell: UITableViewCell{ |
| 321 | 321 | imgView.isUserInteractionEnabled = true |
| 322 | 322 | imgView.addGestureRecognizer(UITapGestureRecognizer(target: self, action: #selector(imgViewTapAciton))) |
| 323 | 323 | imgView.tag = 1000+i |
| 324 | - imgView.contentMode = .center | |
| 324 | + imgView.contentMode = .scaleAspectFit | |
| 325 | 325 | let imgUrl = imgArr[i] |
| 326 | 326 | imgView.clipsToBounds = true |
| 327 | 327 | imgView.layer.cornerRadius = 5 |
| ... | ... | @@ -409,7 +409,7 @@ class CNLiveVitaeWorkCell: UITableViewCell{ |
| 409 | 409 | imgView.isUserInteractionEnabled = true |
| 410 | 410 | imgView.addGestureRecognizer(UITapGestureRecognizer(target: self, action: #selector(imgViewTapAciton))) |
| 411 | 411 | imgView.tag = 1000+i |
| 412 | - imgView.contentMode = .center | |
| 412 | + imgView.contentMode = .scaleAspectFit | |
| 413 | 413 | let imgUrl = imgArr[i] |
| 414 | 414 | imgView.clipsToBounds = true |
| 415 | 415 | imgView.layer.cornerRadius = 5 | ... | ... |
metaCode/Classes/Main/HomePage/View/DigitalAuthViews/我的简历cell/CNLiveDigitalResumePreviewFourCell.swift
| ... | ... | @@ -383,7 +383,7 @@ class CNLiveDigitalResumePreviewFourCell: UITableViewCell { |
| 383 | 383 | imgView.isUserInteractionEnabled = true |
| 384 | 384 | imgView.addGestureRecognizer(UITapGestureRecognizer(target: self, action: #selector(imgViewTapAciton))) |
| 385 | 385 | imgView.tag = 1000+i |
| 386 | - imgView.contentMode = .center | |
| 386 | + imgView.contentMode = .scaleAspectFit | |
| 387 | 387 | let imgUrl = imgArr[i] |
| 388 | 388 | imgView.clipsToBounds = true |
| 389 | 389 | imgView.layer.cornerRadius = 5 |
| ... | ... | @@ -499,7 +499,7 @@ class CNLiveDigitalResumePreviewFourCell: UITableViewCell { |
| 499 | 499 | imgView.isUserInteractionEnabled = true |
| 500 | 500 | imgView.addGestureRecognizer(UITapGestureRecognizer(target: self, action: #selector(imgViewTapAciton))) |
| 501 | 501 | imgView.tag = 1000+i |
| 502 | - imgView.contentMode = .center | |
| 502 | + imgView.contentMode = .scaleAspectFit | |
| 503 | 503 | let imgUrl = imgArr[i] |
| 504 | 504 | imgView.clipsToBounds = true |
| 505 | 505 | imgView.layer.cornerRadius = 5 | ... | ... |
metaCode/Classes/Main/HomePage/View/DigitalAuthViews/我的简历cell/CNLiveDigitalResumePreviewThreeCell.swift
| ... | ... | @@ -140,7 +140,7 @@ class CNLiveDigitalResumePreviewThreeCell: UITableViewCell { |
| 140 | 140 | let lie = i%3 |
| 141 | 141 | let hang = i/3 |
| 142 | 142 | let imgView = UIImageView(frame: CGRect(x: CGFloat(imgLeftGap+(imgGap+imgW)*Float(lie)), y: CGFloat((imgH+10)*Float(hang))+46, width: CGFloat(imgW), height: CGFloat(imgH))) |
| 143 | - imgView.contentMode = .center | |
| 143 | + imgView.contentMode = .scaleAspectFit | |
| 144 | 144 | imgView.tag = 1000+i |
| 145 | 145 | let cerModel = modelsArr[i]//CNLiveVitaeCertificateModel |
| 146 | 146 | let imgUrl = cerModel.img | ... | ... |