「Swift」定数宣言(ConstantA、ConstantB、ConstantCなど )の書き方

1.説明
定数名    接頭辞
ConstantA  let
ConstantB  private let
ConstantC  static let
ConstantD  private static let

2.サンプルコード
let ConstantA = “11"
private let ConstantB = “22"

class Test: NSObject {

static let ConstantC = “33"
private static let ConstantD = “44"

//some code

}

Software

Posted by arkgame