To run the example project, clone the repo, and run pod install
from the Example directory first.
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 下载
NicooEmptyView is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'NicooEmptyView'
504672006@qq.com, yangxin@tzpt.com
NicooEmptyView is available under the MIT license. See the LICENSE file for more info.