<kbd id="afajh"><form id="afajh"></form></kbd>
<strong id="afajh"><dl id="afajh"></dl></strong>
    <del id="afajh"><form id="afajh"></form></del>
        1. <th id="afajh"><progress id="afajh"></progress></th>
          <b id="afajh"><abbr id="afajh"></abbr></b>
          <th id="afajh"><progress id="afajh"></progress></th>

          DPImageCacheUIImageView 擴(kuò)展

          聯(lián)合創(chuàng)作 · 2023-09-26 03:03

          DPImageCache 是 Swift 寫成的 UIImageView 的擴(kuò)展,幫助加載圖像異步存儲本地文件緩存。

          使用:

          let dirName = "cache"
          func createCacheDirectory() {
                  var fileMan = NSFileManager.defaultManager()
                  var cacheDir = (NSSearchPathForDirectoriesInDomains(
                      .DocumentDirectory,
                      .UserDomainMask, true)[0] as! NSString)
                      .stringByAppendingPathComponent(dirName)
                  if !fileMan.fileExistsAtPath(cacheDir) {
                      fileMan.createDirectoryAtPath(
                          cacheDir,
                          withIntermediateDirectories: false,
                          attributes: nil,
                          error: nil)
                  }
              }

           

          瀏覽 13
          點(diǎn)贊
          評論
          收藏
          分享

          手機(jī)掃一掃分享

          編輯 分享
          舉報(bào)
          評論
          圖片
          表情
          推薦
          點(diǎn)贊
          評論
          收藏
          分享

          手機(jī)掃一掃分享

          編輯 分享
          舉報(bào)
          <kbd id="afajh"><form id="afajh"></form></kbd>
          <strong id="afajh"><dl id="afajh"></dl></strong>
            <del id="afajh"><form id="afajh"></form></del>
                1. <th id="afajh"><progress id="afajh"></progress></th>
                  <b id="afajh"><abbr id="afajh"></abbr></b>
                  <th id="afajh"><progress id="afajh"></progress></th>
                  亚洲无码中出乱伦内射 | 日韩午夜 | 39日韩操逼视频 | 成人毛片18女人毛片免费看麻豆 | 欧美 日韩 人妻 |