iPhone SDK:IBAction [英] iPhone SDK: IBAction

查看:97
本文介绍了iPhone SDK:IBAction的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一种情况,我想要一个按钮来响应两种不同的IBAction方法。有没有办法可以先强制使用特定的方法?当我查看IB中的按钮连接时,它们的顺序正确,但它们始终以相反的顺序执行。

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.

推荐答案

删除IB中的所有连接然后按照我要求的顺序重新连接似乎有效。

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

这篇关于iPhone SDK:IBAction的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆