一,效果图。

【代码笔记】iOS-MBProgressHUD+MJ

二,工程图。

【代码笔记】iOS-MBProgressHUD+MJ

三,代码。

ViewController.m

【代码笔记】iOS-MBProgressHUD+MJ
#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

一,效果图。

【代码笔记】iOS-MBProgressHUD+MJ

二,工程图。

【代码笔记】iOS-MBProgressHUD+MJ

三,代码。

ViewController.m

【代码笔记】iOS-MBProgressHUD+MJ
#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

相关文章: