9

I downloaded Xcode6 and create a simple project.When i choose objective C option from new file template it creates a file name with .m extension.I do not know how to create new .h and .m file in Xcode6.any help will be appreciated.thanks in advance

user3823935
  • 891
  • 2
  • 16
  • 26

2 Answers2

20

CMD + N -> iOs -> Cocoa Touch -> Objective-C Class

Nicolas Charvoz
  • 1,509
  • 15
  • 41
5

To create a Objective-C class, you have to select "Cocoa class". This will create an .h and .m file for you. Alternatively you can manually add a "Header file" with the same name, but thats just more work for the same thing.

Atomix
  • 13,427
  • 9
  • 38
  • 46