, 당신은, 구현 내에서 명시 적으로 오버라이드 (override) 한 경우에도, 슈퍼 클래스의 메소드를 호출 할 수있는 방법, 즉 :Objective-C 객체의 수퍼 클래스에 대한 메소드를 다른 곳에서 어떻게 호출합니까? 서브 클래스를 구현하는 경우
[self overriddenMethod]; //calls the subclass's method
[super overriddenMethod]; //calls the superclass's method
당신은 슈퍼 클래스의 메소드를 호출 할 경우 하위 클래스의 구현 외부에서 가져온 것입니다 (예 :
[[object super] overriddenMethod]; //crashes
이 경우도 가능합니까? 당신이 있다면
[[super super] overriddenMethod]; //will this work?
디자인되지 않았습니다. 디버깅에 필요합니다. – executor21
그런 경우에, 멀리 IMP. :) –