collectionView和TableView奔溃问题

2021-04-01  本文已影响0人  凌空zxl

1、rectForRow方法容易导致奔溃

 let row =tableView.numberOfRows(inSection:0)

        ifindex<row {

            letrect:CGRect=tableView.rectForRow(at:IndexPath(row:index, section:0))

}

上一篇 下一篇

猜你喜欢

热点阅读