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++ 初始化程序?这意味着如果我编写一个自定义初始化程序以从另一个相同类型(C++)的对象创建,合成的属性设置器会调用该初始化程序吗?
我假设初始化程序实际上是指 C++ 构造函数。在合成的 setter 中,调用 C++ 对象的复制构造函数。