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.
我正在使用来自第三方框架的自定义视图。它有多个迭代/手势,如缩放、触摸等。我想创建一个 UIView,它有这个自定义视图的两个平行子视图。每当您对一个子视图进行任何交互(例如平移)时,它都应该对另一个子视图执行完全相同的操作。我将如何实施呢?
将这些自定义视图的两个 UIView 添加到您的 .xib 并为它们创建一个强大的属性。如果他们有允许您检测手势的委托,您将能够在用户与另一个视图交互时更改一个视图上的 UI。