hank
2016-12-13 6e1425f9ce40a8d178a0218e24bc37c7b01477bb
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
//
//  GHWHelper.h
//  GHWSdk
//
//  Created by GHW-T-01 on 15/5/21.
//  Copyright (c) 2015年 Wuyx. All rights reserved.
//
 
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
 
 
@interface WAHelper : NSObject
+ (NSString *)getMd5_32Bit_String:(NSString *)srcString;
+ (NSString *)file_md5:(NSString*) path;
+ (NSString*)getOts;
+ (id)toArrayOrNSDictionary:(NSString *)jsonString;
+ (void)setClientId:(NSString*)clientId;
+ (void)deleteClientId;
+ (NSString*)getClientId;
+ (NSString*)getBundleId;
+ (NSString*)getBuild;
+ (NSString*)getAppVersion;
+ (NSString*)getCarrierName;
+ (NSString*)getFingerId;
+ (NSString*)getDeviceId;
+ (void)saveCache:(NSString *const)key withString:(NSString *)value;
+ (NSString *)getCacheWithKey:(NSString *const)key;
+ (id)getCacheByKey:(NSString *const)key;
+ (void)deleteCacheWithKey:(NSString *const)key;
+ (void)saveCacheWithKey:(NSString *const)key andValue:(id)value;
+ (void)archivedDataWithRootObject:(id)obj andKey:(NSString *const)key;
+ (id)unarchiveObjectWithKey:(NSString *const)key;
+ (void)dictionary:(NSMutableDictionary *)dictionary setObject:(id)object forKey:(id<NSCopying>)key;
+(NSString*)toJSONStringFromDictionary:(NSDictionary*)dict;
//keychain 增删改
+(UIImage*)loadImgWithBundleName:(NSString*)bundleName ImgName:(NSString*)imgName andExt:(NSString*)ext;
+(void)saveKeyChainWithObj:(id)obj andKey:(NSString *const)key;
+(id)loadObjFromKeyChainWithKey:(NSString *const)key;
+(void)deleteObjFromKeyChainWithKey:(NSString *const)key;
+(NSString*)getIDFV;
+(NSString*)getIDFA;
+(NSString*)getPreferredLanguage;
/**
 *  获取本地时间
 */
+(NSDate*)getLocalTime;
+(NSMutableDictionary*)addParam:(id)param andKey:(NSString *const)key forDict:(NSMutableDictionary*)dict;
+(UIViewController *)getCurrentVC;
+(void)addOrientationNotification:(id)observer selector:(SEL)selector object:(id)object;
+(void)removeOrientationNotification:(id)observer object:(id)object;
+(NSString *)getMacAddress;
/** 设备是否越狱 */
+ (BOOL)isJailBreak;
/** 设置sdk类型 0 国外,1 国内 */
+(void)setSDKType:(NSInteger)sdkType;
/** 获取sdk类型 0 国外,1 国内 */
+(NSInteger)getSDKType;
 
+(NSString*)getMsgWithDict:(NSDictionary*)dict;
@end