Why are there two @interfaces for view controllers?-Collection of common programming errors
I’m learning some Objective-C, specifically iOS-related stuff. Whenever I generate a new UIViewController
, or UITableViewController
, etc, both the generated .h
and .m
files contain an @interface
. The application will continue to compile if I delete the @interface
from the .m
file, also. What is the purpose of this @interface
in the .m
file?