Can't use Swift classes inside Objective-C

前端 未结 25 2391
野趣味
野趣味 2020-11-22 08:10

I try to integrate Swift code in my app.My app is written in Objective-C and I added a Swift class. I\'ve done everything described he

25条回答
  •  不要未来只要你来
    2020-11-22 08:34

    Just include #import "myProject-Swift.h" in .m or .h file

    P.S You will not find "myProject-Swift.h" in file inspector it's hidden. But it is generated by app automatically.

提交回复
热议问题