あなたの問題は解決されます.youtubeビデオガイドは正しいですが、最後まで注意深く見てください。以下のコードを試してください。 uiimageviewの写真のプロパティが表示されません。
class CustomCell: UITableViewCell {
@IBOutlet weak var photo: UIImageView!
@IBOutlet weak var name: UILabel!
@IBOutlet weak var breed: UILabel!
}
// Next class
class Dog: UIViewController,UITableViewDelegate,UITableViewDataSource {
func tableView(tableView: UITableView,numberOfRowsInSection section: Int) -> Int {
return Names.count
}
func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell {
var cell = tableView.dequeueReusableCellWithIdentifier("Cell", forIndexPath: indexPath) as! CustomCell
cell.photo.image = images[indexPath.row]
あなたの 'CustomCell'に' UIImageView'の 'outlet'を作成するのを忘れました。それを作成し、 'prototypeCell'でバインドします。あなたの問題を解決します。 –