问题
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.
来源:https://stackoverflow.com/questions/9792619/creating-event-for-ib