3 ms·
On iOS C++ is generally only used when you don't need to make much use of the Cocoa Touch APIs. If you do, you will be using the hybrid 'Objective-C++' language
by mambodog 16y ago
On iOS C++ is generally only used when you don't need to make much use of the Cocoa Touch APIs. If you do, you will be using the hybrid 'Objective-C++' language, and you will still need to use some Objective-C.
See this Stackoverflow answer: http://stackoverflow.com/questions/3804219/what-is-the-difference-between-c-objective-c-and-objective-c/3804297#3804297 http://stackoverflow.com/questions/3804219/what-is-the-diffe...
Basically, it's probably easier and less messy to just learn Obj-C.
- torpor 16y agoActually .. Toll-free bridging between Obj-C and C++ objects makes it very, very easy to mix the use of objects throughout your codebase. About the only 'difficult' thing about doing this is to remember that your c++ source files have to have the ".m" prefix instead of ".cpp" .. :)