开发者

Are C++ initializers called in Objective-C synthesized properties?

Are C++ initializers开发者_如何学C called in Objective-C synthesized properties? Meaning if I write a custom initializer for creation from another object of the same type (C++) does the synthesized property setter call that initializer?


I assume by initializer you actually mean a C++ constructor. In a synthesized setter the copy constructor for the C++ object is called.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜