在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
Swift 2.0 : 'enumerate' is unavailable: call the 'enumerate()' method on the sequence
如下代码: for (index,cell) in enumerate(self.tableView.visibleCells){ if let acell = cell as? ChatCell { acell.changeColor(self.isWhiteBackground) } } 修改为如下: for (index,cell) in self.tableView.visibleCells.enumerate(){ if let acell = cell as? ChatCell { acell.changeColor(self.isWhiteBackground) } } http://stackoverflow.com/questions/30730387/swift-2-0-enumerate-is-unavailable-call-the-enumerate-method-on-the-seq 查找原因如下, |
请发表评论