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; |
711726
|
43 |
+(NSString*)getSimulateIDFA; |
e395b5
|
44 |
+(NSArray*)getSimulateIDFAParams; |
6e1425
|
45 |
+(NSString*)getPreferredLanguage; |
H |
46 |
/** |
|
47 |
* 获取本地时间 |
|
48 |
*/ |
|
49 |
+(NSDate*)getLocalTime; |
|
50 |
+(NSMutableDictionary*)addParam:(id)param andKey:(NSString *const)key forDict:(NSMutableDictionary*)dict; |
|
51 |
+(UIViewController *)getCurrentVC; |
|
52 |
+(void)addOrientationNotification:(id)observer selector:(SEL)selector object:(id)object; |
|
53 |
+(void)removeOrientationNotification:(id)observer object:(id)object; |
|
54 |
+(NSString *)getMacAddress; |
|
55 |
/** 设备是否越狱 */ |
|
56 |
+ (BOOL)isJailBreak; |
|
57 |
/** 设置sdk类型 0 国外,1 国内 */ |
|
58 |
+(void)setSDKType:(NSInteger)sdkType; |
|
59 |
/** 获取sdk类型 0 国外,1 国内 */ |
|
60 |
+(NSInteger)getSDKType; |
|
61 |
|
|
62 |
+(NSString*)getMsgWithDict:(NSDictionary*)dict; |
|
63 |
@end |