Files
knowledge-kit/Chapter1 - iOS/1.16.md
2020-02-25 17:46:51 +08:00

271 B
Raw Permalink Blame History

Swift、OC混编

1、在oc文件中使用swift文件。
选中项目TARGETS->Building Settings->搜索“Objective-C Genereated Interface Header Name”对应的名字。
在oc文件中需要使用swift的地方头文件导入上一步对应的名字。