xn_base_BaseViewController.h 1.19 KB
//
//  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