search

Home  >  Q&A  >  body text

ios - OC中定义了全局变量 BOOL close[30];在swift中应该怎样定义?

OC中定义了全局变量 BOOL close[30];在swift中应该怎样定义?

PHP中文网PHP中文网2771 days ago731

reply all(1)I'll reply

  • 大家讲道理

    大家讲道理2017-04-18 09:49:24

    As follows, the initialization of the Bool array is all false and the length is 30

    // 在全局区域
    public var close = [Bool](repeating: false, count: 30)

    reply
    0
  • Cancelreply