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.
我有以下问题:我在故事板上添加了 2 个按钮。但我想在它们被点击之前用按钮做某事。如何访问例如 button1/button2 ?当他们被点击时,我只能捕捉到 IBAction。有没有办法在它们被点击之前使用它们?
谢谢。