2016-03-19 4 views

答えて

1

問題がcreateDirectoryAtURLへのお電話は、明示的な戻り値を持たないということです。 Swiftでは、空のタプル()によって表されるVoidを返します。これはあなたの呼び出しがどのように見えるかです。

let temp = NSTemporaryDirectory() 
    let newDiretoryURL = NSURL.fileURLWithPath(temp + "/MyNewDirectory") 
    try fileManager.createDirectoryAtURL(newDiretoryURL, withIntermediateDirectories: false, attributes: nil) 
    print("Success") 
    } 
} catch { 
    // handle errors here 
} 
+0

大変ありがとうございます!^。^ – Jixes

関連する問題