@interface in .m file

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

  1. naphatkrit macrumors member

    Joined:
    Jul 18, 2011
    #1
    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

    jnoxx

    Joined:
    Dec 29, 2010
    Location:
    Aartselaar // Antwerp // Belgium
    #2
    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