Swift Playgrounds:替换为 captureValue(_:withIdentifier:) [英] Swift Playgrounds: Replacement for captureValue(_:withIdentifier:)

查看:37
本文介绍了Swift Playgrounds:替换为 captureValue(_:withIdentifier:)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Xcode 7.3 已弃用 XCPlaygroundPage.currentPage.captureValue(_:withIdentifier:).它的前身 XCPCaptureValue()已在 Xcode 7.1 中弃用.

Xcode 7.3 has deprecated XCPlaygroundPage.currentPage.captureValue(_:withIdentifier:). Its predecessor, XCPCaptureValue(), was deprecated in Xcode 7.1.

我想知道除了隐式捕获集合和循环之外是否还有其他替代方法?除了使用显式方法更灵活之外,向图形添加标题的能力似乎随着弃用/删除而消失了(尽管找到了符号,但上述弃用的方法没有做任何事情,或者至少不是您所做的)d 期望).

I'm wondering if there is any replacement, apart from implicit capture of collections and in loops? Apart from being more flexible using the explicit approach, the ability to add captions to graphs seems to be gone with the deprecation/removal (although the symbols are found, the aforementioned deprecated methods don't do anything, or at least not what you'd expect).

推荐答案

目前没有替代方案或替代方案.图形仅隐式显示.我已经在 WWDC 2016 的 Swift/Xcode 实验室中验证了这一点.我已经提交了一份雷达并将更新这个问题,如果有任何进展.

There is currently no alternative or replacement. Graphs are only displayed implicitly. I have verified this in the Swift/Xcode labs at WWDC 2016. I have filed a radar and will update this questions, should there be any progress.

这篇关于Swift Playgrounds:替换为 captureValue(_:withIdentifier:)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆