How can i create same action like have UIButton or other UI controllers?
UIButton *button = [UIButton buttonWithType:UIButtonTypeRoundedRect]; [button addTarget:self action:@selector(buttonClicked) forControlEvents:UIControlEventTouchUpInside]; [view addSubview:button];
...
- (void)buttonClicked { // Handler }
i would like to have class which can call custom handler. How can i create this class and how can i do add custom handler? (i would like same idea with buttonClicjed)