I’m extremely new to xcode and objective c. I realize that we only declare methods in the .h file if we want it public to other classes. I also noticed that we can use class extensions in the .m file to make a method “private”. But how is it that some methods aren’t declared anywhere (such as viewDidLoad, etc.)?
Thanks in advance.
They are methods of the superclass –
UIViewController. They are declared in the interface for that class. When you inherit from that class, you inherit all of its method declarations and implementations.