hanleylee / hanleylee.com-comments

网站评论仓库
https://hanleylee.com
2 stars 0 forks source link

UITableView 的两种复用 cell 方法的区别 | 闪耀旅途 #66

Open hanleylee opened 2 years ago

hanleylee commented 2 years ago

https://www.hanleylee.com/difference-between-two-tableview-dequeue-reusable-cell-methods.html

做过 iOS 开发的人都知道, iOS 的 UITableView 的 Cell 需要复用, 复用的时候有两种方法可以调用 dequeueReusableCell(withIdentifier:) dequeueReusableCell(withIdentifier:for:) 那么他们到底有什么区别?