Swift报错解决" 'try' and the error is not handled"

Swift报错解决" 'try' and the error is not handled"_第1张图片

错误提示:swift: Call can throw, but it is not marked with 'try' and the error is not handled

Swift报错解决" 'try' and the error is not handled"_第2张图片

解决方法:

Swift报错解决" 'try' and the error is not handled"_第3张图片

学自:此处

你可能感兴趣的:(Swift报错解决" 'try' and the error is not handled")