-
Notifications
You must be signed in to change notification settings - Fork 35
Objective C
murakami edited this page Jul 3, 2012
·
8 revisions
@interface ClassName :ItsSuperclass
{
instance variable declarations
}
method declarations
@end
@implementation ClassName :ItsSuperclass
{
instance variable declarations
}
method definitions
@end
- (id)init
{
self = [super init];
if (self) {
}
return self;
}
@protocol ProtocolName
method declarations
@end
@protocol ProtocolName1 <ProtocolName2>
method declarations
@end
カテゴリ宣言
@interface ClassName ( CategoryName )
method declarations
@end
#import "ClassName.h"
@interface ClassName ( CategoryName )
// メソッド宣言
@end