JHNoDataEmptyView 1.1.1

JHNoDataEmptyView 1.1.1

Haocold维护。



  • Haocold

JHNoDataEmptyViewForT-C

为tableview和collectionview提供的空白视图

基于: visibleCells


日志

3. 添加属性'jh_showNoDataEmptyView'。(2018-9-5)

  • 建议您使用此属性,'jh_hideNoDataEmptyView'属性亦保留。您可以选择其一使用。
  • 自动显示效果太大,某些系统collectionview也会受到影响。
  • pod 1.1.0更新失败。请使用版本1.1.0。

2. 将'jh_showAutomatic'替换为'jh_hideNoDataEmptyView'。(2018-7-24)

  • 如果您不想显示'JHNoDataEmptyView',则将此值设置为'YES'。

1. 添加属性'jh_showAutomatic'。(2018-07-23)

  • 默认为'YES'。

  • 如果您不想显示'JHNoDataEmptyView',则将此值设置为'NO'。


实现代理提供更多信息

UICollectionView 的代理

@protocol JHNoDataUICollectionViewDelegate <NSObject>

@optional

/// offer a image to show some infomation for user.
- (UIImageView *)imageViewForCollectionViewWhenDataSourceIsEmpty;

/// offer a label to show some infomation for user.
- (UILabel *)labelForCollectionViewWhenDataSourceIsEmpty;

/// the empty view that add to tableView.
- (void)emptyViewForCollectionViewWhenDataSourceIsEmpty:(UIView *)emptyView;

@end

UITableView 的代理

@protocol JHNoDataUITableViewDelegate <NSObject>

@optional

/// offer a image to show some infomation for user.
- (UIImageView *)imageViewForTableViewWhenDataSourceIsEmpty;

/// offer a label to show some infomation for user.
- (UILabel *)labelForTableViewWhenDataSourceIsEmpty;

/// the empty view that add to tableView.
- (void)emptyViewForTableViewWhenDataSourceIsEmpty:(UIView *)emptyView;

@end