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.
嗨,我在自定义视图中创建了带有框架(244,75,142,85)的自定义视图,我放置了 2 个 UIButtons。但是,每当我在自定义视图之外单击时,如何隐藏自定义视图。如果有人知道,请提前告知我。
在外部视图中添加大按钮,将框架设置为整个视图。并在 Touchupinside 事件中,创建隐藏整个视图的方法。