I have created a UIButton programmatically in my iphone application using this code :
UIButton *button = [UIButton buttonWithType:UIButtonTypeRoundedRect];
[button addTarget:self
action:@selector(aMethod:)
forControlEvents:UIControlEventTouchDown];
[button setTitle:@"Show View" forState:UIControlStateNormal];
button.frame = CGRectMake(80.0, 210.0, 160.0, 40.0);
[view addSubview:button];
Now what I want to do is: when I touch down this button (first action) to show a hidden label and when I release it, it takes me to another view (second action). Does any one can help me to approach that. Thanks.