I would like to remove the selected state effect from the UIButtons.
When pressed a blue capsule appears next to the UIButton.

UPDATE with new problem
UIButton with type:system selects the targeted button. After changing the UIButton type to custom. This effect was removed. Other buttons were pressed that are located in the same view.
This is part of the UIButton function, if pressed it should run the code in this IBAction. Two UIButtons are connected to this function. With type system it selected the right UIButton, with type custom it seems to select at random.
- (IBAction) buttonAction:(id)sender
{
UIButton *btn = sender;
btn.selected = !btn.selected;
if([sender tag] == 1){
// run code UIButton 1
}
if([sender tag] == 2){
// run code UIButton 2
}
}
I hope this is clear.
