Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有没有办法将 Objective-C 类实例作为成员存储在 C++ 类中?
您需要制作一个 .mm 文件,然后才能使用此处列出的功能。另请参阅Apple 关于混合语言的旧文档的参考。