【问题标题】:I got Marquee Label error in UICollectionViewCell我在 UICollectionViewCell 中遇到选取框标签错误
【发布时间】:2016-01-13 12:20:04
【问题描述】:

当我从左到右或从右到左快速滚动时出现此错误。

" 由于未捕获的异常 'NSInvalidArgumentException' 导致应用程序终止,原因:'-[__NSCFType doubleValue]: unrecognized selector sent to instance 0x13cf0d300"

我已经实现了代码。下图。

【问题讨论】:

    标签: swift2 uicollectionviewcell marquee tvos9.1


    【解决方案1】:

    你确定你的completionHandler 被主队列调用了吗?如果没有,请尝试使用

    将代码包装在 completionHandler
    dispatch_async(dispatch_get_main_queue()) {
        if thumbnailsURL == url {
            // Your animation code
        }
    }
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2020-06-30
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2010-12-15
      相关资源
      最近更新 更多