【发布时间】:2018-07-07 19:01:36
【问题描述】:
如何调整 imageView 的大小? Xcode 说 imageView 的初始化从未使用过。
func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
let cell = tableView.dequeueReusableCell(withIdentifier: "Cell")
let city = nicosiaPlaces [indexPath.row]
cell?.textLabel?.text = city
let imageView = CGSize(width: 100, height: 100)
cell?.imageView?.image = UIImage(named: city)
return cell!
}
【问题讨论】: