![]() ![]() Select the existing swift project folder in the next dialog, check the checkbox before the swift project ( TestProject ) in the Targets list, then click the Create button to create the cocoa touch class. ![]() Input the cocoa touch class name in the Class: input text box in the next wizard dialog window, select the NSObject class in the Subclass of: drop-down list and select Objective-C coding language in the Language: drop-down list. It will show the Choose options for your new file wizard dialog.m file separately, you can select Objective-C File and Header File template separately. m files, if you want to create the objective-c. Then select Cocoa Touch Class template in the iOS tab.Click File -> New -> File menu item at Xcode top menu bar.m file’s code content into the newly created file accordingly follow the below steps. You had better create a new Objective-C class file and then copy your old Objective-C. If you have an old Objective-C file, you should not copy it into the project directly. ![]() You can read the article How To Create A Swift Project In Xcode, How To Create Xcode Workspace And Add New / Exist Project Into It if you do not know.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |