Under what conditions is @synthesize automatic in Objective-c?

前端 未结 5 2016
自闭症患者
自闭症患者 2020-12-01 18:04

Under what conditions is @synthesize automatic in Objective-c?

Perhaps when using LLVM 3.0 and up? From reading around the net it seems like

5条回答
  •  余生分开走
    2020-12-01 18:21

    From the New Features in Xcode 4.4 document:

    Objective-C @properties are synthesized by default when not explicitly implemented.

    So @synthesize is automatic by default starting from Xcode 4.4 with the LLVM 4.0 Compiler.

提交回复
热议问题