3

I would like to use a C++ class in an objective c application. How to achieve this?

Thanks for your helps :)

AP.
  • 5,205
  • 7
  • 50
  • 94

1 Answers1

4

You can do this using "Objective-C++". You should read Apple's documentation, but the short version is that you may mix C++ and Objective-C in files with the extension ".mm". It's not magic (C++ classes and Objective-C classes are still separate things), but you can now use them in the same code.

andyvn22
  • 14,696
  • 1
  • 52
  • 74