FWEmptyPlugin
@protocol FWEmptyPlugin <NSObject>
空界面插件协议,应用可自定义空界面插件实现
-
显示空界面,指定文本、详细文本、图片、加载视图和最多两个动作按钮
Declaration
Objective-C
- (void)showEmptyViewWithText:(nullable NSString *)text detail:(nullable NSString *)detail image:(nullable UIImage *)image loading:(BOOL)loading actions:(nullable NSArray<NSString *> *)actions block:(nullable void (^)(NSInteger, id _Nonnull __strong))block inView:(nonnull UIView *)view;
-
隐藏空界面
Declaration
Objective-C
- (void)hideEmptyView:(nonnull UIView *)view;
-
是否显示空界面
Declaration
Objective-C
- (BOOL)hasEmptyView:(nonnull UIView *)view;