下記のように、.hファイルではなく、.mファイル内冒頭に、@interface ディレクティブと @end ディレクティブで挟む形で記載します。
//ClassA.m
#import "ClassA.h"
@interface ClassA (private)
- (void)privateMethod1;
- (void)privateMethod2;
@end
@implementation BHBroadcasterViewController
- (void)privateMethod1 {
...
}
- (void)privateMethod2 {
...
}
@end
0 件のコメント:
コメントを投稿