一、SDK中描述是在声明property的时候,有2个选择 二、 @synthesize will generate getter and setter methods for your property. @dynamic just tells the compiler that the getter and setter methods are implemented not by the class itself but somewhere else (like the superclass) Uses for @dynamic are e.g. with subclasses of Super class:
Subclass:
|
|
来自: 昵称20917807 > 《iOS》