Latest 1.0.0
Homepage https://github.com/okerivy/JYEmptyView
License MIT
Platforms ios 7.0, requires ARC
Frameworks Foundation, CoreGraphics, UIKit
Authors

Empty view if no net work or no data for iOS

Podfile

platform :ios, ‘7.0’

pod "JYEmptyView"

Rely

We need to rely on a few tools in the Tools folder inside CommmonTools
需要依赖 几个工具类 工具类 在CommmonTools 文件夹里面

How to use

// 添加占位图片
__weak __typeof(self)weakSelf = self;
[JYEmptyView emptyViewWithSuperView:self.view imageName:@"nonetwork" labTitles:[NSMutableArray arrayWithObjects:@"网络连接失败", nil] buttonTitle:@"点击重试" myBlcok:^(UIButton *btn) {

NSLog(@"%s---%@", __func__, btn);

// 按钮的点击事件
__strong __typeof(weakSelf)strongSelf = weakSelf;
[JYEmptyView hideJYEmptyView:strongSelf.view];

// 模拟网络请求
[strongSelf getDataFromSer];

}];

Latest podspec

{
    "name": "JYEmptyView",
    "version": "1.0.0",
    "summary": "A marquee view used on iOS.",
    "description": "                       It is a marquee view used on iOS, which implement by Objective-C.n",
    "homepage": "https://github.com/okerivy/JYEmptyView",
    "license": "MIT",
    "authors": {
        "okerivy": "[email protected]"
    },
    "source": {
        "git": "https://github.com/okerivy/JYEmptyView.git",
        "tag": "1.0.0"
    },
    "platforms": {
        "ios": "7.0"
    },
    "requires_arc": true,
    "source_files": [
        "JYEmptyView/*",
        "JYEmptyView/CommmonTools/*"
    ],
    "frameworks": [
        "Foundation",
        "CoreGraphics",
        "UIKit"
    ]
}

Pin It on Pinterest

Share This