commit | author | age
|
6e1425
|
1 |
// |
H |
2 |
// GHWHelper.h |
|
3 |
// GHWSdk |
|
4 |
// |
|
5 |
// Created by GHW-T-01 on 15/5/21. |
|
6 |
// Copyright (c) 2015年 Wuyx. All rights reserved. |
|
7 |
// |
|
8 |
|
|
9 |
#import <Foundation/Foundation.h> |
|
10 |
#import <UIKit/UIKit.h> |
|
11 |
|
|
12 |
|
|
13 |
@interface WAHelper : NSObject |
|
14 |
+ (NSString *)getMd5_32Bit_String:(NSString *)srcString; |
|
15 |
+ (NSString *)file_md5:(NSString*) path; |
|
16 |
+ (NSString*)getOts; |
|
17 |
+ (id)toArrayOrNSDictionary:(NSString *)jsonString; |
|
18 |
+ (void)setClientId:(NSString*)clientId; |
|
19 |
+ (void)deleteClientId; |
|
20 |
+ (NSString*)getClientId; |
|
21 |
+ (NSString*)getBundleId; |
|
22 |
+ (NSString*)getBuild; |
|
23 |
+ (NSString*)getAppVersion; |
|
24 |
+ (NSString*)getCarrierName; |
|
25 |
+ (NSString*)getFingerId; |
|
26 |
+ (NSString*)getDeviceId; |
|
27 |
+ (void)saveCache:(NSString *const)key withString:(NSString *)value; |
|
28 |
+ (NSString *)getCacheWithKey:(NSString *const)key; |
|
29 |
+ (id)getCacheByKey:(NSString *const)key; |
|
30 |
+ (void)deleteCacheWithKey:(NSString *const)key; |
|
31 |
+ (void)saveCacheWithKey:(NSString *const)key andValue:(id)value; |
|
32 |
+ (void)archivedDataWithRootObject:(id)obj andKey:(NSString *const)key; |
|
33 |
+ (id)unarchiveObjectWithKey:(NSString *const)key; |
|
34 |
+ (void)dictionary:(NSMutableDictionary *)dictionary setObject:(id)object forKey:(id<NSCopying>)key; |
|
35 |
+(NSString*)toJSONStringFromDictionary:(NSDictionary*)dict; |
|
36 |
//keychain 增删改 |
|
37 |
+(UIImage*)loadImgWithBundleName:(NSString*)bundleName ImgName:(NSString*)imgName andExt:(NSString*)ext; |
|
38 |
+(void)saveKeyChainWithObj:(id)obj andKey:(NSString *const)key; |
|
39 |
+(id)loadObjFromKeyChainWithKey:(NSString *const)key; |
|
40 |
+(void)deleteObjFromKeyChainWithKey:(NSString *const)key; |
|
41 |
+(NSString*)getIDFV; |
|
42 |
+(NSString*)getIDFA; |
|
43 |
+(NSString*)getPreferredLanguage; |
|
44 |
/** |
|
45 |
* 获取本地时间 |
|
46 |
*/ |
|
47 |
+(NSDate*)getLocalTime; |
|
48 |
+(NSMutableDictionary*)addParam:(id)param andKey:(NSString *const)key forDict:(NSMutableDictionary*)dict; |
|
49 |
+(UIViewController *)getCurrentVC; |
|
50 |
+(void)addOrientationNotification:(id)observer selector:(SEL)selector object:(id)object; |
|
51 |
+(void)removeOrientationNotification:(id)observer object:(id)object; |
|
52 |
+(NSString *)getMacAddress; |
|
53 |
/** 设备是否越狱 */ |
|
54 |
+ (BOOL)isJailBreak; |
|
55 |
/** 设置sdk类型 0 国外,1 国内 */ |
|
56 |
+(void)setSDKType:(NSInteger)sdkType; |
|
57 |
/** 获取sdk类型 0 国外,1 国内 */ |
|
58 |
+(NSInteger)getSDKType; |
|
59 |
|
|
60 |
+(NSString*)getMsgWithDict:(NSDictionary*)dict; |
|
61 |
@end |