一、枚举

1.1-枚举的基本用法

swift之枚举与可选项

1.2-枚举的关联值(associated values)

swift之枚举与可选项

1.3-枚举的原始值(raw values)

swift之枚举与可选项

1.4-隐式原始值(implicitly assigned raw values)

swift之枚举与可选项

1.5-递归枚举(recursive enumeration)

swift之枚举与可选项

1.6-MemoryLayout

swift之枚举与可选项

二、可选类型

2.1-可选项

swift之枚举与可选项

2.2-强制解包(forced unwrapping)

swift之枚举与可选项

2.3-判断可选项是否为nil

swift之枚举与可选项

2.4-可选项绑定(optional binding)

swift之枚举与可选项

2.5-while语句使用可选项绑定

swift之枚举与可选项

2.6-空合并运算符??(nil-coalescing operator)

swift之枚举与可选项

2.7-guard语句

swift之枚举与可选项

2.8-隐式解包(implicitly unwrapping optional)

swift之枚举与可选项

2.9-字符串插值

swift之枚举与可选项

2.10-多重可选项

swift之枚举与可选项

相关文章:

  • 2022-01-07
  • 2021-05-24
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-03-02
猜你喜欢
  • 2021-12-22
  • 2021-07-07
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案