use c++ template class from objective c file
I would like to use a C++ class in an objective c application. How to ach开发者_StackOverflowieve this?
Thanks for your helps :)
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.
精彩评论