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.
这是一个非常简单的问题,我没有时间检查。. (代码可以工作,但看起来很乱,我会在了解情况后进行重构)。
问题:
对于 IBOutletCollection,顺序是什么?是建立连接的顺序吗?或者如果订单很重要,是否需要标签?
如果排序很重要,您不能安全地使用 IBOutletCollection 而不添加像标签这样的附加属性。
有时他们会保留添加连接的顺序,但有时他们不会。
还有其他类似的问题在讨论这个问题:
Interface Builder 中的 IBOutletCollection 集排序