Swift2.2 error

Error:Call can throw, but it is not marked with 'try' and the error is not handled

通过加一个try解决。原因就是没有处理错误

do{

  try  xxxx

  print("保存内容名称成功!")

  }catch{

  fatalError("the error:\(error)")
}

results matching ""

    No results matching ""