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.
在 Interface Builder 中有View Effects Inspector。对于 NSView,可以在其中找到带有选项的转换设置。 使用此设置的正确方法是什么?在 IB 中拥有这个并不意味着要实现很多编码,对吗?
好吧,这似乎很容易。必须使用子视图的animator属性来执行转换。例如,如果“mySubview”的父视图将转换子视图选项设置为某种转换样式,
[[mySubview animator] removeFromSuperview];
将使用指定的转换将自己从超级视图中移除。