[Thread 1: signal SIGABRT]: UITableView, UICollectionView Cell cells prior to customization, must be registered Cell

★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★
➤ micro-channel public number: Shan Wing Chi ( shanqingyongzhi)
➤ blog Park address: San-ching Wing Chi ( https://www.cnblogs.com/strengthen/ )
➤GitHub address: https://github.com/strengthen/LeetCode
➤ original address: HTTPS: // the WWW. cnblogs.com/strengthen/p/12141815.html
➤ If the link is not the blog Chi Wing Shan Park address, it may be crawling author of the article.
➤ text has been modified update! Click strongly recommended that the original address read! Support authors! Support the original!
★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★

Error message:

Thread 1: signal SIGABRT

CustomCell is a custom UITableViewCell or UICollectionViewCell

Cell must be registered before multiplexing the cells.

Registration UITableView Cell

collectionView.register(CustomCell.self,forCellWithReuseIdentifier:cellIdentifier)

UICollectionView registered Cell

tableView.register(CustomCell.self,forCellReuseIdentifier:cellIdentifier)

Complex then it may be written in the code!

Guess you like

Origin www.cnblogs.com/strengthen/p/12141815.html