【问题标题】:How to use Kingfisher image library or AlamofireImage in watch OS 2?如何在 watch OS 2 中使用 Kingfisher 图像库或 AlamofireImage?
【发布时间】:2016-06-15 11:53:53
【问题描述】:

Watch OS 没有 ImageView,但上述两个库仅作为 ImageView 扩展工作。他们提到它将支持 watch os 2,但找不到任何相关文档。

【问题讨论】:

    标签: ios swift uiimageview watchkit alamofireimage


    【解决方案1】:

    使用

    实现

    let URL = NSURL(string: "https://raw.githubusercontent.com/onevcat/Kingfisher/master/images/kingfisher-\(currentIndex! + 1).jpg")! KingfisherManager.sharedManager.retrieveImageWithURL(URL, optionsInfo: nil, progressBlock: nil) { (image, error, cacheType, imageURL) -> () in self.interfaceImage.setImage(image) }

    【讨论】:

      猜你喜欢
      • 2016-11-22
      • 2017-10-30
      • 1970-01-01
      • 1970-01-01
      • 2017-10-18
      • 1970-01-01
      • 2018-02-26
      • 2015-12-14
      • 1970-01-01
      相关资源
      最近更新 更多