Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Xcode 7.3已弃用 XCPlaygroundPage.currentPage.captureValue(_:withIdentifier:). 它的前身 ,在 Xcode 7.1中已XCPCaptureValue()被弃用。
XCPlaygroundPage.currentPage.captureValue(_:withIdentifier:)
XCPCaptureValue()
我想知道除了隐式捕获集合和循环之外是否有任何替代?除了使用显式方法更灵活之外,向图形添加标题的能力似乎随着弃用/删除而消失(尽管找到了符号,但上述弃用的方法没有做任何事情,或者至少不是你的d 期望)。
目前没有替代品或替代品。图表仅隐式显示。我已经在 WWDC 2016 的 Swift/Xcode 实验室中验证了这一点。我已经提交了一份雷达文件,如果有任何进展,我会更新这个问题。
使用currentPage属性:
currentPage
XCPlaygroundPage.currentPage.captureValue(_, withIdentifier:)