たくさんの質問を読みましたが、答えが見つからないようです
TableView がありますが、セルに画像を追加できません
cell.imageView.image = UIImage(named: "osx_design_view_messages")
基本的に回答から質問にコピーしたため、このコードは機能するはずですが、何らかの理由で機能しません。助言がありますか?
ちなみにswift使ってる
override func tableView(tableView: UITableView!, cellForRowAtIndexPath indexPath: NSIndexPath!) -> UITableViewCell!
{
let cellIdentifier = "cell"
var cell : UITableViewCell
cell = tableView.dequeueReusableCellWithIdentifier(cellIdentifier) as UITableViewCell
cell.textLabel.text = self.recipies[indexPath.row]
var image : UIImage = UIImage(named: "osx_design_view_messages")
return cell
}