Writing a C++ Wrapper around Objective-C

后端 未结 4 1887
臣服心动
臣服心动 2020-12-30 08:58

I want to call and work with Objective-C classes from within a C++ project on OS X. It is time to start moving towards all Objective-C, but we need to do this over some time

4条回答
  •  感情败类
    2020-12-30 09:05

    Check out this question Calling Objective-C method from C++ method?

    You will need to have some objective-c classes to wrap the code and expose with a C function.

提交回复
热议问题