override func viewWillAppear(_ animated: Bool) { super.viewWillAppear(animated) let cell = tableVView.dequeueReusableCell(withIdentifier: "Celll") as! ItiranTableViewCell for post in cell{ if (post.label.text == genre1) { if(shine == true){ cell.imageViewVV.backgroundColor = UIColor.red }else{ cell.imageViewVV.backgroundColor = UIColor.white } } } }
ここで for post in cell
のcell
に対して
Type 'ItiranTableViewCell' does not conform to protocol 'Sequence'とエラーが出ます。何かいいアイデアはないでしょうか?
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2017/03/09 14:02
2017/03/09 14:09
2017/03/09 14:46
2017/03/09 14:58