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.
我有一种情况,我想要一个按钮来响应两种不同的 IBAction 方法。有没有办法可以先强制使用特定方法?当我查看 IB 中的按钮连接时,它们的顺序是正确的,但它们始终以相反的顺序执行。
我不这么认为,但为什么不直接调用另一个动作呢?
删除 IB 中的所有连接,然后按照我需要的顺序重新连接似乎可行。