Appleからのサンプルコードについて、非常に基本的な質問があります。 .mファイルでは、クラスの宣言は次のようになります。@interfaceディレクティブと@implementationディレクティブのかっこ内のテキストは何を意味していますか?
@interface MyMovieViewController (OverlayView)
[...]
@end
@interface MyMovieViewController (ViewController)
[...]
@end
@implementation MyMovieViewController(ViewController)
[...]
@end
@implementation MyMovieViewController (OverlayView)
[...]
@end
@implementation MyMovieViewController
[...]
@end
完全なコードhereを。
括弧内の項目( "OverlayView"と "ViewController")は、コードを分割して読みやすくするのに役立ちますが、実際にはコードの実行には影響しません。しかし、私は何か重要なことを誤解したくないので、私は確かめることを確認すると思った。
私の理解は正しいですか?ありがとう!
アップルのドキュメント(https://developer.apple.com/library/ios/documentation/cocoa/conceptual/ProgrammingWithObjectiveC/CustomizingExistingClasses/CustomizingExistingClasses.html) – LopSae