码迷,mamicode.com
首页 > 其他好文 > 详细

MBProgressHUD简单使用

时间:2014-12-09 19:28:45      阅读:253      评论:0      收藏:0      [点我收藏+]

标签:使用   sp   strong   on   bs   ad   as   nbsp   res   

/ / 这种默认菊花

_deletingHUD = [[MBProgressHUDalloc] initWithView:self.view];

    _deletingHUD.labelText = @"正在删除...";

    [self.viewaddSubview:_deletingHUD];

    

    [_deletingHUDshow:YES];

 

 

 

 

 

/ / 这种带自定义图片

MBProgressHUD *hud = [[MBProgressHUDalloc] initWithView:self.view];

        hud.mode = MBProgressHUDModeCustomView;

        hud.labelText = @"网络已连接";

        hud.customView = [[UIImageViewalloc] initWithImage:[UIImageimageNamed:@"success"]];

        [self.view addSubview:hud];

        

        [hud show:YES];

        [hud hide:YES afterDelay:1];

MBProgressHUD简单使用

标签:使用   sp   strong   on   bs   ad   as   nbsp   res   

原文地址:http://www.cnblogs.com/liman1990/p/4153803.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!