2017-10-11 43 views
0

我試圖分配assessmentStatus像這樣:PlaygroundPage沒有成員assessmentStatus

PlaygroundPage.current.assessmentStatus = .pass(message: "Great job!") 

不過,我不斷收到錯誤

PlaygroundPage has no member assessmentStatus 

我已經導入PlaygroundSupport和語句就像PlaygroundPage.current.liveView = myController工作剛精細。

蘋果的文檔聲稱assessmentStatus存在:

https://developer.apple.com/library/content/documentation/Xcode/Conceptual/swift_playgrounds_doc_format/XCPlaygroundPage.html

但點擊PlaygroundPage並打算把它的定義表明,實在是沒有成員assessmentStatus如本屏幕截圖:

enter image description here

有人可以幫我分揀嗎?謝謝!

回答

0

該功能僅適用於iPad上的Playgrounds app,而不適用於XcodePlayground。你可以在你的iPad here

後來編輯下載的應用程序:請參見this文章太

+0

這可能是真的。有沒有官方文件討論這種區別? – Frankie