Skip to content

the view show when request failed , no data ,no network.

License

Notifications You must be signed in to change notification settings

yangxina/NicooEnptyView

Repository files navigation

NicooEmptyView

CI Status Version License Platform

Example

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

Requirements

NicooEmptyView is show when no network, request failed, no data tableList.

NicooErrorView.showErrorMessage(.noNetwork, on: strongSelf.view, clickHandler: {
print("Press Screen to request again!")
})
// 默认的两种错误提示:

NicooErrorView.showErrorMessage(.noNetwork, on: strongSelf.view, topMargin: 100, clickHandler: nil)

// 暂无数据

NicooBuildingView.showBuildingView(on: view)

自定义错误提示语:

NicooErrorView.showCustomErrorMessage("What is wrong with you !", on: view, customerTopMargin: 90)

 如果代码报错, 可以到 https://github.com/yangxina/code 下载

Installation

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

pod 'NicooEmptyView'

Author

504672006@qq.com, yangxin@tzpt.com

License

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

About

the view show when request failed , no data ,no network.

Resources

License

Stars

Watchers

Forks

Packages

No packages published