Вот код, который у меня есть:
UIButton *svObjectButton = [UIButton buttonWithType:UIButtonTypeCustom];
svObjectButton.frame = CGRectMake(0, 0, 100, 100);
[svObjectButton addTarget:self action:@selector(svObjectTouchUpInside) forControlEvents:UIControlEventTouchUpInside];
[svView addSubview:svObjectButton];
UIButton *removeButton = [UIButton buttonWithType:UIButtonTypeRoundedRect];
removeButton.frame = CGRectMake(0, 0, 20, 20);
[removeButton addTarget:self action:@selector(removeButtonPressed) forControlEvents:UIControlEventTouchUpInside];
[svObjectButton addSubview:removeButton];
[svObjectButton bringSubviewToFront:removeButton];
Но по какой-то причине все прикосновения к removeButton идут прямо к svObjectButton.
Есть идеи?