1. 源代码下载链接:04-plis属性列表04-plis属性列表.zip
    27.8 KB
  2. //
  3. //  MJPerson.h
  4. //  04-plis属性列表
  5. //
  6. //  Created by apple on 13-12-11.
  7. //  Copyright (c) 2013itcast. All rights reserved.
  8. //

  9. #import<Foundation/Foundation.h>

  10. @interfaceMJPerson : NSObject
  11. @property(nonatomic,copy) NSString *name;
  12. @end
  13. // MJPerson.m

    Map
  14. //
  15. //  MJPerson.m
  16. //  04-plis属性列表
  17. //
  18. //  Created by apple on 13-12-11.
  19. //  Copyright (c) 2013itcast. All rights reserved.
  20. //

  21. #import"MJPerson.h"

  22. @implementationMJPerson

  23. @end
  24. // QQViewController.h

    Map
  25. //
  26. //  QQViewController.h
  27. //  04-plis属性列表
  28. //
  29. //  Created by apple on 13-12-11.
  30. //  Copyright (c) 2013itcast. All rights reserved.
  31. //

  32. #import<UIKit/UIKit.h>

  33. @interfaceQQViewController : UIViewController

  34. @end
  35. // QQViewController.m

    Map
  36. //
  37. //  QQViewController.m
  38. //  04-plis属性列表
  39. //
  40. //  Created by apple on 13-12-11.
  41. //  Copyright (c) 2013itcast. All rights reserved.
  42. //

  43. #import"QQViewController.h"
  44. #import"MJPerson.h"

  45. @interfaceQQViewController ()

  46. @end

  47. @implementationQQViewController

  48. - (void)viewDidLoad
  49. {
  50.     [superviewDidLoad];
  51.    
  52. //    NSArray *array = @[@"4343", @"gfdgdfg"];
  53.    
  54.    
  55.     MJPerson *p = [[MJPerson alloc] init];
  56.     p.name =@"jack";
  57.    //本文永久链接,转载请注明出处:http://www.cnblogs.com/ChenYilong/p/3490657.html
  58.     NSArray *array =@[@{
  59.                           @"name"p.name
  60.                           }];
  61.    
  62.     [array writeToFile:@"/Users/apple/Desktop/ppp.plist"atomically:YES];
  63. }
  64. @end

 

https://www.evernote.com/shard/s227/sh/198ecac9-0ae1-4107-9424-e906f27edb6b/559b11fa4d1e0949e5df25d9063e1b64

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-02-08
  • 2021-06-02
  • 2021-09-25
  • 2022-01-05
  • 2021-07-07
  • 2021-12-09
猜你喜欢
  • 2021-09-10
  • 2022-02-08
  • 2022-02-08
  • 2021-07-08
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案