1
This commit is contained in:
@@ -40,6 +40,22 @@ typedef void(^KBEmptyAction)(void);
|
||||
/// 触发刷新空数据视图(若集成了 DZNEmptyDataSet 则调用其 reloadEmptyDataSet)
|
||||
- (void)kb_reloadEmptyDataSet;
|
||||
|
||||
/// 使用 LYEmptyView 在表格页快速挂载一套统一样式的空态视图(与 DZNEmptyDataSet 二选一)
|
||||
/// 注意:调用该方法会自动关闭本类内置的 DZNEmptyDataSet(useEmptyDataSet = NO),避免冲突。
|
||||
/// - Parameters:
|
||||
/// - image: 占位图(可空)
|
||||
/// - title: 标题(默认“暂无数据”)
|
||||
/// - detail: 描述(可空)
|
||||
/// - buttonTitle: 按钮标题(可空,传空则不展示按钮)
|
||||
/// - tapHandler: 点击空白区域回调(可空)
|
||||
/// - buttonHandler: 按钮点击回调(可空)
|
||||
- (void)kb_makeDefaultEmptyViewWithImage:(nullable UIImage *)image
|
||||
title:(nullable NSString *)title
|
||||
detail:(nullable NSString *)detail
|
||||
buttonTitle:(nullable NSString *)buttonTitle
|
||||
tapHandler:(nullable KBEmptyAction)tapHandler
|
||||
buttonHandler:(nullable KBEmptyAction)buttonHandler;
|
||||
|
||||
@end
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
||||
|
||||
Reference in New Issue
Block a user