What goes down, must come up
- (void)buttonPressed
{
NSLog(@”Take action when a user finishes pressing a button, not when they start…”);
}
…
button = [[[UIPushButton alloc] initWithFrame:CGRectMake(…)] autorelease];
[button addTarget:self action:@selector(buttonPressed) forEvents:kUIControlEventMouseUpInside];
[button setShowPressFeedback:YES];
[button setEnabled:YES];
[view addSubview:button];