If you are correct, it should be the attribute get method in Objective-C. Actually, @Tr2e was almost completely correct. His answer could have been improved with a slight modification:
lazy var orders: [AnyObject] = []
NO:
// 如果省略 `:` 后面的类型的话,orders 的类型会变为 NSArray,
// 而不是 Swift 的类型,也不是 NSMutableArray
lazy var orders = []
If you are correct, it should be the attribute get method in Objective-C.
Actually, @Tr2e was almost completely correct. His answer could have been improved with a slight modification:
NO:
(PS: orders is a better name)
Single case?
If hard translation
Swift point
There is a keyword called lazy, which is roughly like this:
lazy var array = { let a = NSArray.init(); return a }()