table view contorollerを使用して、
画像の上に文字を表示したい(サンプル画像参照)
のですが、プロパティの中にtittleと
画像を配置すると、
画像と文字が左右に分かれてしまします。
画像をセルいっぱいに広げても左右に分かれてしまうのですが、
どのようなコードまたは配置をすれば、重なるのか教えてください。
swift3
1 override func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell { 2 3 let cell = tableView.dequeueReusableCell(withIdentifier: "Cell", for: indexPath) 4 5 cell.textLabel?.text = shops[indexPath.row] 6 cell.imageView?.image = UIImage(named: imageArray[indexPath.row]) 7 8 return cell 9 } 10
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2017/01/29 06:48