FWEmptyPlugin

@protocol FWEmptyPlugin <NSObject>

空界面插件协议,应用可自定义空界面插件实现

  • 显示空界面,指定文本、图片和动作按钮

    Declaration

    Objective-C

    - (void)showEmptyViewWithText:(nullable NSString *)text
                           detail:(nullable NSString *)detail
                            image:(nullable UIImage *)image
                          loading:(BOOL)loading
                           action:(nullable NSString *)action
                            block:(nullable void (^)(id _Nonnull __strong))block
                           inView:(nonnull UIView *)view;
  • 隐藏空界面

    Declaration

    Objective-C

    - (void)hideEmptyView:(nonnull UIView *)view;
  • 是否显示空界面

    Declaration

    Objective-C

    - (BOOL)hasEmptyView:(nonnull UIView *)view;