подскажите пожалуйста как сделать так чтоб при любом размере экрана все было на весь экран как в случае с 5s
if imgURL3 == nil {
cell.img3.image = nil
if imgURL2 == nil {
cell.img2.image = nil
if imgURL1 == nil {
cell.img1.image = nil
}
else {
cell.img1.frame = CGRect(x: 13, y: 5, width: 300, height: 145)
let imageView1 = cell.img1!
imageView1.sd_setImage(with: URL(string: img1Array[indexPath.row]))
}
}
else {
cell.img1.frame = CGRect(x: 13, y: 5, width: 147, height: 145)
cell.img2.frame = CGRect(x: 166, y: 5, width: 147, height: 145)
let imageView1 = cell.img1!
imageView1.sd_setImage(with: URL(string: img1Array[indexPath.row]))
let imageView2 = cell.img2!
imageView2.sd_setImage(with: URL(string: img2Array[indexPath.row]))
}
}
else {
cell.img1.frame = CGRect(x: 13, y: 5, width: 147, height: 145)
cell.img2.frame = CGRect(x: 166, y: 5, width: 144, height: 71)
cell.img3.frame = CGRect(x: 166, y: 79, width: 144, height: 71)
let imageView1 = cell.img1!
imageView1.sd_setImage(with: URL(string: img1Array[indexPath.row]))
let imageView2 = cell.img2!
imageView2.sd_setImage(with: URL(string: img2Array[indexPath.row]))
let imageView3 = cell.img3!
imageView3.sd_setImage(with: URL(string: img3Array[indexPath.row]))
}
вот так у меня работают картинки