为IB创建活动 [英] creating event for IB

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

问题描述

有没有办法让自定义控件发送可以从IB使用的事件?

Is there a way to have a custom control send events that can be used from IB?

类似于UIButton的发送事件中的事件(例如我们的touchUpInside )

Something like the events in UIButton's "sent events" (such us touchUpInside)

推荐答案


有没有办法让自定义控件发送可以使用的事件$ b IB的$ b?

Is there a way to have a custom control send events that can be used from IB?

没有。 IB知道UIControl实现的事件,但没有办法告诉它你自己的事件。

No. IB "knows" about the events that UIControl implements, but there's no way to tell it about your own events.

这篇关于为IB创建活动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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