Setting custom target and action in Interface Builder

I have a custom control that is reused frequently. It is meant to respond to a long press. I'd like to be able to set the target and selector in interface builder. Is there any method for having something like-

@property (nonatomic,assign) IBOutlet SEL longPressSelector;

Alternatively is there a way to add custom UIControlEvents that can be set it Interface Builder?

Thanks

7
задан 15 March 2011 в 16:22
поделиться