How to create a new h and m file in Xcode6

I downloaded Xcode6 and created a simple project. When I select the object parameter C from a new file template, it creates a file name with the extension .m. I do not know how to create new .h and .m files in Xcode6.any help would be appreciated. thanks in advance

+5
source share
2 answers

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

+16
source

To create an Objective-C class, you must select the "Cocoa class" . This will create .h and .m files for you. Alternatively, you can manually add a β€œheader file” with the same name, but this just works more for the same one.

+2
source

Source: https://habr.com/ru/post/1202417/


All Articles