Just got the book a few weeks ago and I’m really enjoying working my way through it. Sorry if this is a stupid question, but here goes…
On page 161, we are asked to implement the method orientationChanged: in HeavyRotationAppDelegate.m. However, we do not define this method in HeavyRotationAppDelegate.h as an instance method. Why is this legal? My understanding (so far) was that we don’t have to declare instance methods in the header file for a class under two circumstances:
- If the method is already declared in the header file of the superclass and we want to override it, or
- If the method is declared in a protocol that the class conforms to.
I tried to find if orientationChanged: was declared anywhere in UIResponder or in UIApplicationDelegate, but I couldn’t find it. What am I missing?