1.

On A Uitableviewcell Constructor:- (id)initwithstyle:(uitableviewcellstyle)style Reuseidentifier:(nsstring *)reuseidentifierwhat Is The Reuseidentifier Used For?

Answer»

The reuseIdentifier is used to indicate that a cell can be re-used in a UITableView. For example when the cell looks the same, but has different CONTENT. The UITableView will maintain an INTERNAL cache of UITableViewCell’s with the reuseIdentifier and allow them to be re-used when dequeueReusableCellWithIdentifier: is called. By re-using table cell’s the scroll performance of the tableview is better because NEW VIEWS do not need to be created.

The reuseIdentifier is used to indicate that a cell can be re-used in a UITableView. For example when the cell looks the same, but has different content. The UITableView will maintain an internal cache of UITableViewCell’s with the reuseIdentifier and allow them to be re-used when dequeueReusableCellWithIdentifier: is called. By re-using table cell’s the scroll performance of the tableview is better because new views do not need to be created.



Discussion

No Comment Found