CLDataPlist.h 761 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. //
  2. // CLDataPlist.h
  3. // SolarBT
  4. //
  5. // Created by weclouds on 2019/4/24.
  6. // Copyright © 2019 weclouds. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. NS_ASSUME_NONNULL_BEGIN
  10. @interface CLDataPlist : NSObject
  11. @property (nonatomic,strong)NSString *BLEName;
  12. +(id)sharePlist;
  13. /**
  14. 初始化函数
  15. */
  16. -(void)writeToPlistWithBlename:(NSString *)blename;
  17. -(NSString *)description;
  18. //读取plist文件
  19. /**
  20. return 返回用户信息字典
  21. */
  22. -(NSMutableDictionary *)readDataFromPlist;
  23. /**
  24. 删除plist
  25. */
  26. -(void)deleleteDatePlist;
  27. /**
  28. 可依据key (username)删除设备
  29. */
  30. -(void)removeDataWithKey:(NSString *)key;
  31. @end
  32. NS_ASSUME_NONNULL_END