how to iterate each tableview cells

来源:互联网 发布:怎么在淘宝上买种子 编辑:程序博客网 时间:2024/05/16 14:25
//iterate each tableview cell            for section in 0..<tableView!.numberOfSections {                for row in 0..<tableView!.numberOfRowsInSection(section) {                    let indexPath = NSIndexPath(forRow: row, inSection: section)                    let cell = tableView!.cellForRowAtIndexPath(indexPath)                    // do what you want with the cell                }            }
0 0