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.
我正在尝试查看是否有一种方法可以调用具有关联标签的插座集合中的插座。我环顾四周并在这里查看,但似乎没有什么能真正回答这个问题
好吧,在我发布这个之后,我就明白了。如果其他人有这个问题,下面就是我为解决它所做的。如果有更好的方法请评论!确保为集合中的每个对象设置一个标签,然后引用该标签。
在 bgViews 中查看 {
if view.tag == 1 { //example used to test it view.isHidden = true }