MBProgressHUD的使用

1.创建

MBProgressHUD *_hud;

2.显示

//显示进度条
-(void)createProgressView
{
    _numProgress = 0;
    
    _hud = [MBProgressHUD showHUDAddedTo:self.view animated:YES];
    _hud.labelText = @"努力加载中...";
    _hud.mode = MBProgressHUDModeIndeterminate;
}

3.隐藏

[_hud hide:YES];

 

posted on 2015-09-13 19:39  Baymax01  阅读(130)  评论(0编辑  收藏  举报

导航