@interface in .m file

Discussion in 'iOS Programming' started by naphatkrit, Jun 26, 2012.

  1. naphatkrit macrumors member

    Jul 18, 2011
    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?
  2. jnoxx macrumors 65816


    Dec 29, 2010
    Aartselaar // Antwerp // Belgium
    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 :)

Share This Page