TableViewCellで画像を挿入すると、(画像が大きいためか?)セルの下線が画像の手前で途切れてしまいます。画像自体のサイズを小さくしても、拡大されて表示され、セルの下線が切れます。表示画像のサイズを変更する方法はありますでしょうか?
以下がソースになります。
lang
1 func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell { 2 let cell = UITableViewCell(style: UITableViewCellStyle.Subtitle, reuseIdentifier: "Cell") 3 cell.textLabel!.text = item[indexPath.row] 4 cell.detailTextLabel!.text = date[indexPath.row] 5 cell.imageView?.image = UIImage(named: "hoge.png") 6 7 return cell 8 }
下線を途切らせることなく、その中に画像も表示させたいです。
よろしくお願いします。
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2015/04/28 01:04