猎豆优选

ALPOpenUtil.h 850B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. //
  2. // ALPOpenUtil.h
  3. // ALPLinkPartnerSDK
  4. //
  5. // Created by czp on 16/9/22.
  6. // Copyright © 2016年 czp. All rights reserved.
  7. //
  8. #import "ALPJumpParam.h"
  9. #import <UIKit/UIKit.h>
  10. __attribute__((deprecated("ALPOpenUtil已过期, 不再使用")))
  11. @interface ALPOpenUtil : NSObject
  12. /**
  13. * 把dictionary转为json
  14. *
  15. */
  16. + (NSString *)pareseToJSONWithDictionary:(NSDictionary *)dictionary;
  17. + (NSString *)encodeALLWithURL:(NSString *)url;
  18. /**
  19. * Dictionary转query
  20. *
  21. * @param dic 字典
  22. *
  23. * @return query字符串
  24. */
  25. + (NSString *)queryStringFromDictionary:(NSDictionary *)dic;
  26. /**
  27. * md5加密算法,传入待加密string
  28. */
  29. + (NSString *)encodeToMD5:(NSString *)string;
  30. /**
  31. * urldecode
  32. */
  33. + (NSString *)urlDecoded:(NSString *)string;
  34. /*
  35. * 转换为base64字符串
  36. */
  37. + (NSString *)base64EncodedWithString:(NSString*)str;
  38. @end