UITableView - Как получить доступ к UITableViewPlaceHolder, который объявлен как открытый в UIKit? - PullRequest
0 голосов
/ 11 октября 2018

Приведенный ниже код взят из UIKit -> UITableView.Он указывает, что cellUpdateHandler будет вызываться всякий раз, когда ячейка-заполнитель будет видимой для обновления содержимого ячейки.Как я могу получить к нему доступ?(или) Что я должен сделать, чтобы получать уведомления, когда ячейка заполнителя видна?

@available(iOS 11.0, *)
open class UITableViewPlaceholder : NSObject {

// A placeholder cell will be dequeued for the reuse identifier and inserted at the specified index path without requiring a data source update.
// You may use UITableViewAutomaticDimension for the rowHeight to have the placeholder cell self-size if the table view is using estimated row heights.
public init(insertionIndexPath: IndexPath, reuseIdentifier: String, rowHeight: CGFloat)


// Called whenever the placeholder cell is visible to update the contents of the cell.
open var cellUpdateHandler: ((UITableViewCell) -> Swift.Void)?

}
Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...