2016-08-13 44 views
1

當我運行這個小代碼時,我看不到結果。我看到的全部是:(11次)Xcode中的遊樂場設置

var name = "Karthik" 

for x in 0...10 { 
    print(name) 
} 

如何單獨顯示結果?

回答

2

最初,它看起來像這樣 Initially it looks like this

選擇快速查找圖標 Select the quick look icon

它會打開一個彈出窗口,你會看到一個值,右鍵單擊它並選擇值歷史 It opens a pop up, you'll see one value, right click it on it and select value history

你會看到值的列表,並可以通過它滾動 YOu'll see the list of values and can scroll through it

嘗試使用另一個選項,例如名爲show result的圖標。點擊它 Try to use the other option with an eye like icon called show result. Click on it

你會看到結果在遊樂場編輯器上彈出。 You'll see that the result popped itself on the playground editor.

右擊彈出這是現在坐在操場編輯器並選擇值歷史 Right click on the pop up which is now sitting in the playground editor and select value history

你會看到值的列表,並可以通過它 ​​

HOPE滾動幫助:)