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