Skip to content

一个加载等待的view,支持自定义动画图片,支持空数据,支持加载失败重新加载

Notifications You must be signed in to change notification settings

zhufengyi01/ZFYLoadView

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 

Repository files navigation

ZFYLoadView

###模拟加载失败,重新加载回调

[ZFYLoading showFailWithstatus:@"加载失败" inView:view event:^(UIButton *button) {
 NSLog(@"button ==%@",button);
     点击显示正在加载
   [ZFYLoading showLoadViewInview:view];
  }];
数据加载完成后消失
[self performSelector:@selector(dis) withObject:self afterDelay:4];
 //4秒后消失,也就是数据加载完成后执行
-(void)dis
{
    [ZFYLoading dismiss];
    
}

###没有数据


   没有数据1
    [ZFYLoading showNullWithstatus:@"没有数据" inView:view];
    没有数据2
    [ZFYLoading showNullWithImage:[UIImage imageNamed:@"huoying"] inView:view];
    没有数据3
    [ZFYLoading showNullWithImage:[UIImage imageNamed:@"huoying"] status:@"呵呵..." inview:view];
    

###正在加载


   正在加载1
    [ZFYLoading showLoadViewInview:view];
   正在加载2
    [ZFYLoading showLoadViewWithStatus:@"正在加载..." inView:view];
   正在加载3
    [ZFYLoading showLoadViewWithImage:[UIImage imageNamed:@"huoying"] status:@"正在加载" inview:view];

About

一个加载等待的view,支持自定义动画图片,支持空数据,支持加载失败重新加载

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published