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.
我可以隐藏或防止[[Foo alloc] init]在 Foo 类之外的代码中使用吗?
[[Foo alloc] init]
我只想使用自定义代码createFooObject,而不是alloc/init成语。
createFooObject
alloc/init
可以躲在alloc/init课堂上吗?