| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293 |
- //
- // BaseViewController.h
- // IBOSS
- //
- // Created by iHope on 17-7-7.
- // Copyright (c) 2017年 沈阳东科云信软件有限公司. All rights reserved.
- //
- // 功能描述:控制器基础类
- //
- #import <UIKit/UIKit.h>
- #import "CommonCrypto/CommonDigest.h"
- #import "sys/utsname.h"
- #import "UserInfoManager.h"
- #import "NewMBProgressHUD.h"
- @interface BaseViewController : UIViewController {
-
- }
- /**
- 进度条
- */
- @property (nonatomic,strong) MBProgressHUD *hud;
- /**
- 进度条
- */
- @property (nonatomic,strong) NewMBProgressHUD *hudNew;
- /**
- 加载消息
- */
- @property (nonatomic, retain) NSString *mLoadMsg;
- /**
- 代理
- */
- @property (nonatomic, assign) id delegate;
- /**
- 返回sel
- */
- @property (nonatomic, assign) SEL onGoBack;
- /**
- 标题
- */
- @property (nonatomic, strong) UILabel *mlbTitle;
- /**
- 标题颜色
- */
- @property (nonatomic, retain) UIColor *mTitleColor;
- /**
- 顶部颜色
- */
- @property (nonatomic, retain) UIColor *mTopColor;
- /**
- 顶部图片
- */
- @property (nonatomic, retain) UIImage *mTopImage;
- /**
- 右导航标示
- */
- @property (nonatomic, assign) BOOL mbLightNav;
- /**
- ip地址
- @return <#return value description#>
- */
- - (NSString *)IPAddress;
- /**
- 将数据转换成字符串
- @param arr <#arr description#>
- @return <#return value description#>
- */
- - (NSString *)getArrToString:(NSArray *)arr;
- /**
- md5加密
- @param str <#str description#>
- @return <#return value description#>
- */
- - (NSString *) md5:(NSString *)str;
- /**
- 设备信息
- */
- - (void)getDeviceAndOSInfo;
- /**
- 进度条加载中。。。。
- */
- - (void)showLoading;
- /**
- 进度条隐藏
- */
- - (void)hideLoading;
- /**
- 标题
- @param text <#text description#>
- */
- - (void)showTitle:(NSString*)text;
- /**
- 标题
- @param text <#text description#>
- @param nav <#nav description#>
- */
- - (void)showTitle:(NSString*)text navi:(UINavigationController*)nav;
- /**
- 文本加载中
- @param text <#text description#>
- */
- - (void)showLoadingText:(NSString*)text;
- /**
- 显示消息
- @param text <#text description#>
- */
- - (void)showAlertViewText:(NSString *)text;
- /**
- 显示消息
- @param text <#text description#>
- */
- - (void)showAlertViewBackText:(NSString *)text;
- /**
- 返回按钮事件
- */
- - (void)goBack;
- /**
- 回到主页
- */
- - (void)goHome;
- /**
- 加载进度条开始
- */
- - (void)startLoading;
- /**
- 进度条结束
- */
- - (void)stopLoading;
- /**
- 加载进度条开始
- */
- - (void)startNewLoading;
- /**
- 进度条结束
- */
- - (void)stopNewLoading;
- /**
- 显示消息
- @param msg <#msg description#>
- */
- - (void)showMsg:(NSString *)msg;
- /**
- 隐藏logo
- */
- - (void)hideLogo;
- /**
- 显示logo
- @param iOffset <#iOffset description#>
- */
- - (void)showLogo:(int)iOffset;
- /**
- 导航栏清空
- */
- - (void)clearNavItem;
- /**
- 导航栏右侧文本
- @param name <#name description#>
- @param target <#target description#>
- @param action <#action description#>
- */
- - (void)addRightTextBtn:(NSString *)name target:(id)target action:(SEL)action;
- /**
- 航栏右侧图片
- @param image <#image description#>
- @param target <#target description#>
- @param action <#action description#>
- */
- - (void)addRightImageBtn:(UIImage *)image target:(id)target action:(SEL)action;
- /**
- 航栏左侧图片
- @param image <#image description#>
- @param target <#target description#>
- @param action <#action description#>
- */
- - (void)addLeftImageBtn:(UIImage *)image target:(id)target action:(SEL)action;
- /**
- 图片按钮
- @param image <#image description#>
- @param target <#target description#>
- @param action <#action description#>
- @return <#return value description#>
- */
- - (UIButton *)getImageButton:(UIImage *)image target:(id)target action:(SEL)action;
- /**
- UIBarButtonItem
- @param image <#image description#>
- @param target <#target description#>
- @param action <#action description#>
- @return <#return value description#>
- */
- - (UIBarButtonItem *)getImageBarItem:(UIImage *)image target:(id)target action:(SEL)action;
- /**
- 航栏右侧图片数组
- @param array <#array description#>
- */
- - (void)addRightImageBtns:(NSArray *)array;
- /**
- 刷新导航单颜色
- */
- - (void)refreshNavColor;
- /**
- uiview
- @return <#return value description#>
- */
- - (UIView *)getInputAccessoryView;
- /**
- 异常登录
- */
- - (void)showReLoginDialog;
- /**
- 异常登录
- @param message <#message description#>
- */
- - (void)showReLoginDialog:(NSString *)message ;
- /**
- 无数据的view
- @param frame <#frame description#>
- @return <#return value description#>
- */
- - (UIView *)noDataViewByFrame:(CGRect)frame;
- /**
- 背景提示布局
- @param frame <#frame description#>
- @param str <#str description#>
- @return <#return value description#>
- */
- - (UIView *)backGroundPromptViewByFrame:(CGRect)frame promptStr:(NSString *)str;
- @end
|