阅读背景:

如何在Swift中使用一个IBAction用于多个按钮?

来源:互联网 

I have multiple buttons each one with the ability to switch the language of the app. Instead of having to create multiple IBActions for each button is there a way to have them all connected to one IBAction and change the language based on the button pressed? I'm thinking a switch statement would be good to use in this situation but not exactly sure how to set it up.I have multiple buttons each one with the abili




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: