In the table view of DetailTableViewController, I use a prototype cell from the storyboard. But for some cases, the prototype cell is not appropriate, so i defined a custom cell with a nib and a custom cell class for the nib. Then i register the custom nib cell in the DetailTableViewController's method viewDidLoad() with a special cell reuse identifier. Then in the tableView(_:cellForRowAtIndexPath:) , i dequeue the custom nib cell for its correspond circumstances. and in some cases, i dequeue the prototype cell to use.
But i found that if these two kinds of cell coexists in the table view, the prototype cell affects the appearance of the custom nib cell. for example, when i change the background color the of the custom nib cell, it shows the prototype's background color. and i have to click the custom nib cell to reveal its real background color.
If i delete the prototype cell to empty, and only use the custom nib cell, then everything works fine.
Is there something special for the prototype cell? as i know(from this answer), prototype cell is nothing more than a custom nib cell defined in the storyboard. Then why?