xn_base_BaseViewController.h
1.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
//
// xn_base_BaseViewController.h
// xn_base_ios
//
// Created by 钱鋆 on 15/12/16.
// Copyright © 2015年 xn. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "Masonry.h"
// delegate
@protocol xn_base_BaseViewDeletegate <NSObject>
@optional
@end
@interface xn_base_BaseViewController : UIViewController
#pragma mark -向当前vc传递Client请求结果用
@property (nonatomic,assign) SEL sel_clientResponse;
@property UInt64 organizationId;
#pragma mark -替代self.view,用于全局设置safearea问题
@property (nonatomic,retain) UIView *mainLayout;
#pragma mark 创建单例
/**
* @author qianjun
*
* @brief 创建单例
*
* @return self
*/
+ (instancetype)sharedInstance;
// HUD的相关处理
#pragma mark - 移除HUD
/**
* @author qianjun
*
* @brief 移除HUD
*/
-(void)f_HUD_remove;
#pragma mark - 创建HUD
/**
* @author qianjun
*
* @brief 创建HUD
*/
-(void)f_HUD_create;
#pragma mark - 显示HUD
/**
* @author qianjun
*
* @brief 显示HUD
*/
-(void)f_HUD_show;
#pragma mark - 隐藏HUD
-(void)f_HUD_hide;
-(void)f_backAction;
-(float)mStatusbarHeight;
-(float)mNavigationbarHeight;
-(float)mTabbarHeight;
-(void)f_resetSafeArea;
@end