一,效果图。
二,工程图。
三,代码。
ViewController.m
class="cnblogs_code_copy" style="font-size: 18px">#import "ViewController.h"
#import "MBProgressHUD+MJ.h"
@interface ViewController ()
@end
@implementation ViewController
- (void)viewDidLoad {
[super viewDidLoad];
// Do any additional setup after loading the view, typically from a nib.
}
-(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event
{
[MBProgressHUD showMessage:@"正在登录" toView:self.view];
}
- (void)didReceiveMemoryWarning {
[super didReceiveMemoryWarning];
// Dispose of any resources that can be recreated.
}
@end