Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

naphatkrit

macrumors member
Original poster
This may be a silly question, but I noticed that Xcode started creating @interface portion of the code in the .m file as well as the .h file. What is the purpose of this? What is the advantage of using the @interface in .m file vs. @interface in .h?
 
Public vs private 🙂
If it's in your M file, it's not public available to other classes who call the current class. This is explained in the topic about Properties above your thread here 🙂
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.