Skip to content

OwenJoe/NoDateTip

Folders and files

NameName
Last commit message
Last commit date

Latest commit

a32bd27 · Feb 27, 2017

History

2 Commits
Feb 27, 2017
Feb 27, 2017
Feb 27, 2017
Feb 27, 2017
Feb 27, 2017
Feb 27, 2017
Feb 27, 2017
Feb 27, 2017
Feb 27, 2017

Repository files navigation

NoDateTip

开发遇到网络中断时候,通常是出现以下两种页面, #####图片+文字 (页面没有点击事件) 显示图片+文字

#####图片+按钮(点击按钮可继续刷新页面) 显示图片+按钮

为了方便开发者的使用,简单为大家提供了已经封装好的方法,一句代码调用即可.

#####将下边两个文件拖进项目,在需要的地方导入头文件 Paste_Image.png

#####调用方法如下

1.图片+文字,使用的是类方法 2.图片+按钮,使用的是对方方法 请注意区分 Paste_Image.png

//图片+文字
[self.view addSubview: [ZNoDateTip OffInternetWithTipImgStr:@"off" TipLabStr:@"请重新加载" TipLabColor:[UIColor grayColor] TipLabFont:16]];


//图片+按钮
ZNoDateTip *noDateView = [[ZNoDateTip alloc]init];
[self.view addSubview: [noDateView OffInternetWithTipImgStr:@"off" TipBtnStr:@"点击重试" TipBtnColor:[UIColor blackColor] TipBtnBgColor:[UIColor yellowColor] tipButtonBlock:^(UIButton *btn) {    
NSLog(@"%@",btn);
[btn addTarget:self action:@selector(test:) forControlEvents:UIControlEventTouchUpInside];
    }]];

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published