QMUICellHeightCache_UITableViewDataSource

@protocol QMUICellHeightCache_UITableViewDataSource

@optional
/// 搭配 QMUICellHeightCache 使用,对于 UITableView 而言如果要用 QMUICellHeightCache 那套高度计算方式,则必须实现这个方法
- (nullable __kindof UITableViewCell *)qmui_tableView:(nullable UITableView *)tableView cellWithIdentifier:(nonnull NSString *)identifier;

@end

Undocumented

  • 搭配 QMUICellHeightCache 使用,对于 UITableView 而言如果要用 QMUICellHeightCache 那套高度计算方式,则必须实现这个方法

    Declaration

    Objective-C

    - (nullable __kindof UITableViewCell *)
            qmui_tableView:(nullable UITableView *)tableView
        cellWithIdentifier:(nonnull NSString *)identifier;

    Swift

    optional func qmui_tableView(_ tableView: UITableView?, cellWithIdentifier identifier: String) -> UITableViewCell?