Swift Developer Question:

Download Job Interview Questions and Answers PDF

Do you know what is the reuseIdentifier used for?

Swift Developer Interview Question
Swift Developer Interview Question

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.

Download Swift Developer Interview Questions And Answers PDF

Previous QuestionNext Question
How to write a multiple line command Swift?Tell me the features of Swift Programming?