You can connect to a IBAction in interface builder
-(IBAction)someMethod:(id)sender{
}
You can connect programatically
UIButton *btn = [UIButton buttonWithType:UIButtonTypeCustom];
[btn addTarget:self action:@selector(someMethod:) forControlEvents:UIControlEventTouchUpInside];