저는 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