当前位置: 动力学知识库 > 问答 > 编程问答 >

ios - Fatal error: unexpectedly found nil while unwrapping an Optional value-ANSWER NOT FOUND IN PREVIOUS QUESTIONS

问题描述:

This question already has an answer here:

  • What does “fatal error: unexpectedly found nil while unwrapping an Optional value” mean?

    4 answers

网友答案:

Either

return resolutionTitles?.count ?? 0

or

var resolutionTitles = defaults.array(forKey: "list") ?? []
分享给朋友:
您可能感兴趣的文章:
随机阅读: