{"id":5178,"date":"2014-03-30T19:26:36","date_gmt":"2014-03-30T19:26:36","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/why-are-there-two-interfaces-for-view-controllers-collection-of-common-programming-errors\/"},"modified":"2014-03-30T19:26:36","modified_gmt":"2014-03-30T19:26:36","slug":"why-are-there-two-interfaces-for-view-controllers-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/why-are-there-two-interfaces-for-view-controllers-collection-of-common-programming-errors\/","title":{"rendered":"Why are there two @interfaces for view controllers?-Collection of common programming errors"},"content":{"rendered":"<p>I&#8217;m learning some Objective-C, specifically iOS-related stuff. Whenever I generate a new <code>UIViewController<\/code>, or <code>UITableViewController<\/code>, etc, both the generated <code>.h<\/code> and <code>.m<\/code> files contain an <code>@interface<\/code>. The application will continue to compile if I delete the <code>@interface<\/code> from the <code>.m<\/code> file, also. What is the purpose of this <code>@interface<\/code> in the <code>.m<\/code> file?<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;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?<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-5178","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/5178","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=5178"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/5178\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=5178"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=5178"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=5178"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}