以下のようなコードはコンパイルエラーになる。
@interface FlipLabel (CustomMethod) @end @implementation FlipLabel (CustomMethod){ NSString *name; } @end
synthesizeも使えない。
>|objc|@interface FlipLabel (CustomMethod)
@property NSString *name;
@end
@implementation FlipLabel (CustomMethod)
@synthesize name = name_;
@end
|