What's the equivalent of finally in Swift

后端 未结 0 1758
梦谈多话
梦谈多话 2021-02-11 20:54

I try to use the error handling modeling in Swift2.

do {
    try NSFileManager.defaultManager().removeItemAtPath(\"path\")
} catch {
    // ...
} finally {
    /         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题