Skip to content

Show the empty view a variety of different load condition.

License

Notifications You must be signed in to change notification settings

LeaderBoy/EmptyStateView

Repository files navigation

!important 当需要显示真正的数据的时候一定要调用reloadState(.success).

如何使用这个库?

  1. 通过cocoapods安装这个库 pod 'ANDEmptyState'
  2. 提供默认的数据源比如断网的描述等等,可参考Demo中ExampleDefault的实现
  3. 让需要显示的view遵循协议view.emptyDataSource = self
  4. 需要显示什么状态显示什么状态view.reloadState(.loading)

讲解请查看博客A.N.D

About

Show the empty view a variety of different load condition.

Resources

License

Stars

Watchers

Forks

Packages

No packages published