//
|
// NSString+PBCategory.h
|
// ProBIM
|
//
|
// Created by zjf on 2017/10/19.
|
// Copyright © 2017年 ProBIM. All rights reserved.
|
//
|
|
#import <Foundation/Foundation.h>
|
|
@interface NSString (PBCategory)
|
// 字典转json字符串方法
|
+ (NSString *)convertToJson:(NSDictionary *)dict;
|
// 数组转json字符串方法
|
+ (NSString *)arrConvertToJson:(NSArray *)arr;
|
// json字符串转字典或数组
|
+ (id)convertTodictionaryOrArr:(NSString *)jsonString;
|
// 读取沙盒userID
|
//+ (NSString *)getSandboxUserID;
|
//读取沙盒Account
|
//+ (NSString *)getSandboxAccount;
|
//读取沙盒RealName信息
|
//+ (NSString *)getSandboxRealName;
|
//生成guid
|
+ (NSString *)getUniqueStrByUUID;
|
//base64 转图片
|
+ (UIImage *)imageDecoding:(NSString *)str;
|
//图片转base64
|
+ (NSString *)imagebase64:(UIImage *)image;
|
//MD5加密
|
+ (NSString *)md5Encryption:(NSString *)str;
|
//读取本地login.plist
|
+ (NSDictionary *)getLoginData;
|
//读取API配置 api.plist
|
+ (NSDictionary *)getApiData;
|
//读取API配置的数组
|
+ (NSArray *)getApiArrData;
|
+ (NSString *)getToken;
|
//获取企业编码IP
|
+ (NSDictionary *)getCodeIp;
|
+(NSString *)urlEncodeStr:(NSString *)input;
|
|
|
|
@end
|