zoukankan      html  css  js  c++  java
  • 【代码笔记】iOS-获得Documents目录

    一,代码。

    复制代码
    - (void)viewDidLoad {
        [super viewDidLoad];
        // Do any additional setup after loading the view, typically from a nib.
        
        //获得Documents目录
        NSString *destPath = NSHomeDirectory();
        NSLog(@"-----path----%@",destPath);
        
    }
    复制代码

     

    二,输出。

    2015-10-23 11:19:36.413 NSHomeDirectoryDemo[5673:135889] -----path----/Users/chenlihua/Library/Developer/CoreSimulator/Devices/78D1FCBF-9990-471F-9075-168F2CE949FE/data/Containers/Data/Application/B9C6534B-0478-4976-811A-EE62ADC702DB
  • 相关阅读:
    扯一扯纯函数
    10.28
    10.27 动手动脑5
    10.26
    10.25 周总结
    10.23
    10.22
    10.21 动手动脑4
    10.20
    10.19
  • 原文地址:https://www.cnblogs.com/yang-guang-girl/p/7272079.html
Copyright © 2011-2022 走看看