UIScrollView(FWScrollOverlayView)

@interface UIScrollView (FWScrollOverlayView)

/// 滚动视图自定义浮层,用于显示空界面等,兼容UITableView|UICollectionView
@property (nonatomic, strong, readonly) UIView *fw_overlayView NS_REFINED_FOR_SWIFT;

/// 是否显示自定义浮层
@property (nonatomic, assign, readonly) BOOL fw_hasOverlayView NS_REFINED_FOR_SWIFT;

/// 显示自定义浮层,自动添加到滚动视图顶部、表格视图底部
- (void)fw_showOverlayView NS_REFINED_FOR_SWIFT;

/// 显示自定义浮层,执行渐变动画,自动添加到滚动视图顶部、表格视图底部
- (void)fw_showOverlayViewAnimated:(BOOL)animated NS_REFINED_FOR_SWIFT;

/// 隐藏自定义浮层,自动从滚动视图移除
- (void)fw_hideOverlayView NS_REFINED_FOR_SWIFT;

@end

Undocumented

  • 滚动视图自定义浮层,用于显示空界面等,兼容UITableView|UICollectionView

    Declaration

    Objective-C

    @property (nonatomic, strong, readonly) NS_REFINED_FOR_SWIFT UIView *fw_overlayView;
  • 是否显示自定义浮层

    Declaration

    Objective-C

    @property (nonatomic, readonly) BOOL fw_hasOverlayView;
  • 显示自定义浮层,自动添加到滚动视图顶部、表格视图底部

    Declaration

    Objective-C

    - (void)fw_showOverlayView;
  • 显示自定义浮层,执行渐变动画,自动添加到滚动视图顶部、表格视图底部

    Declaration

    Objective-C

    - (void)fw_showOverlayViewAnimated:(BOOL)animated;
  • 隐藏自定义浮层,自动从滚动视图移除

    Declaration

    Objective-C

    - (void)fw_hideOverlayView;