creating event for IB

2019-07-18 04:31发布

问题:

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

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

回答1:

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

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