iPhone SDK: IBAction

▼魔方 西西 提交于 2019-12-11 16:37:57

问题


I have a situation where I'd like a button to respond to two different IBAction methods. Is there a way that I can force a particular method first? When I look at the buttons connections in IB they are in the correct order, but they consistently perform in the opposite order.


回答1:


I don't believe so, but why not just call one action from the other?




回答2:


Deleting all the connections in IB then reconnecting in the order I require seemed to work.



来源:https://stackoverflow.com/questions/632309/iphone-sdk-ibaction

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!