【代码笔记】iOS-MBProgressHUD-Demo
2017-12-07 08:59
357 查看
一,工程图。
二,代码。
ViewController.m
二,代码。
ViewController.m
#import "ViewController.h" #import "MBProgressHUD.h" @interface ViewController () @end @implementation ViewController - (void)viewDidLoad { [super viewDidLoad]; // Do any additional setup after loading the view, typically from a nib. //初始化MBProgressHUD MBProgressHUD *hud = [MBProgressHUD showHUDAddedTo:self.view animated:YES]; hud.mode = MBProgressHUDModeCustomView; hud.labelText = @"加载中"; } //点击任何处隐藏MBProgressHUD -(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event { [MBProgressHUD hideHUDForView:self.view animated:YES]; } - (void)didReceiveMemoryWarning { [super didReceiveMemoryWarning]; // Dispose of any resources that can be recreated. } @end
相关文章推荐
- 【代码笔记】iOS-MBProgressHUD-Demo
- 【代码笔记】iOS-JQIndicatorViewDemo
- 【代码笔记】iOS-NSJSONSerializationDemo
- 【代码笔记】iOS-JQIndicatorViewDemo
- 【代码笔记】iOS-NSJSONSerializationDemo
- 【代码笔记】iOS-图文混排(HBLabelDemo)
- 【代码笔记】iOS-NSSearchPathForDirectoriesInDomainsDemo
- 【代码笔记】iOS-图文混排(HBLabelDemo)
- 【代码笔记】iOS-NSSearchPathForDirectoriesInDomainsDemo
- 【代码笔记】iOS-MBProgressHUD
- 【代码笔记】iOS-MBProgressHUD
- 【代码笔记】iOS-MBProgressHUDDemo
- 【代码笔记】iOS-MBProgressHUDDemo
- 【代码笔记】iOS-iCarouselDemo
- 【代码笔记】iOS-JASidePanelsDemo(侧滑)
- 【代码笔记】iOS-FMDBDemo
- 【代码笔记】iOS-DropDownDemo-下拉按钮效果
- 【代码笔记】iOS-JASidePanelsDemo(侧滑)
- 【代码笔记】iOS-FMDBDemo
- 【代码笔记】iOS-DropDownDemo-下拉按钮效果