This article turns fromhttp://www.helloswift.com.cn/swiftbase/2015/0112/3469.htmlIOS OC and Swift mixed 1, create a swift or OC project: I'm here to create the Swift language project, project name Swifttest
2, in the Project code directory to create a OC class, select the OC Language, a dialog box, select Yes
3, this will be in the project to see such a header file
4. Add the. h file of your OC file in this header file, and you can invoke the included OC file yourself in any swift file.
5, next in the project target-"build setting->package under the personality of the following two items
6, and then in the OC Code of the. m file to introduce the + "-swift.h" Such a header file, such as my project will generate swifttest-swift.h such a header file. Then your. m file will be able to invoke swift files casually.
In fact, if you set the defines Module = yes, Xcode will default to the product Module name-swift.h, a header file that will have the. h information for all your. Swift files under this header file. That's why you know everything.
Swift language learning OC and Swift