zoukankan      html  css  js  c++  java
  • 文件路径

    - (NSString *)cacheDir
    {
        // 1.获取cache目录
        NSString *dir = [NSSearchPathForDirectoriesInDomains(NSCachesDirectory, NSUserDomainMask, YES) lastObject];
        return [dir stringByAppendingPathComponent:[self lastPathComponent]];
    }
    - (NSString *)documentDir {
        NSString *dir = [NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) lastObject];
        return [dir stringByAppendingPathComponent:[self lastPathComponent]];
    }
    
    - (NSString *)tmpDir {
        NSString *dir = NSTemporaryDirectory();
        return [dir stringByAppendingPathComponent:[self lastPathComponent]];
    }
    

      

  • 相关阅读:
    进阶算子
    Scala中sortBy和Spark中sortBy区别
    简单算子演示
    map和FlatMap之间区别?
    RDD
    Spark高可用
    Django Rest Framework
    Scrapy
    asyncio
    BeautifulSoup
  • 原文地址:https://www.cnblogs.com/yedayi/p/5140566.html
Copyright © 2011-2022 走看看