CustomCellでAutoScrollLabelを使用しているのですが、CellLabelへ.textでテキストを表示するのは大丈夫なのですが、AutoScrollLabelへテキストを表示させようとすると
Fatal error: Unexpectedly found nil while implicitly unwrapping an Optional value
とエラーになります。
コード
self.autoScrollLabel.text = ViewController.movieTitleList[index]
customCellClass.swift
1//起動時の処理 2 func cellDispayControl(indexPath: IndexPath) { 3 let index = ViewController.koukaibiList[indexPath.section][indexPath.row] 4 self.autoScrollLabel.text = ViewController.movieTitleList[index] 5 //セット 6 let imageData = try? Data(contentsOf: ViewController.moviePosterPathList[index]) 7 let image = UIImage(data:imageData!) 8 self.cellUIimageView.image = image 9 }
あなたの回答
tips
プレビュー