YWLoadingView 0.1.3

YWLoadingView 0.1.3

Maintained by stackjolin.



YWLoadingView

CI Status Version License Platform

It's suppprt UICollectionView,UITableView,UIScrollView,UIView

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

  • import UIView+YWLoadView
    start loading, set:
    [self.view ex_updateLoadingState:YWLoadState_Loading];
    or:
    [self.scrollView ex_updateLoadingState:YWLoadState_Loading];
    or:
    [self.table ex_updateLoadingState:YWLoadState_Loading];
    or:
    [self.collection ex_updateLoadingState:YWLoadState_Loading];

    end loading,set:
    YWLoadState_NoData = 1, // server no data
    YWLoadState_Failed = 2, // load failed
    YWLoadState_UnLogin = 3, // need login
    YWLoadState_NoNetWork = 4, // network limit
    YWLoadState_Finish = 5, // load compelte

  • if you want to catch click events:

    • self.view.loadingActionTarget = self;
    • implementation YWLoadActionDelegate method:
      - (void)clickLoadUnloginView:(id)unloginView
      - (void)clickNoNetWorkView:(id)noNetWorkView
      - (void)clickLoadNodataView:(id)nodataView
      - (void)clickLoadFailedView:(id)failedView

Requirements

Installation

YWLoadingView is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'YWLoadingView'

Author

[email protected], [email protected]

License

YWLoadingView is available under the MIT license. See the LICENSE file for more info.