问题描述:

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") ?? []
相关阅读:
Top