There is a cheeky hack that will help you with this.
you want to use a UISegmentedControl with the style set to UISegmentedControlStyleBar, and only one element. You also need setMomentaryto yes - make it behave like a button:
UISegmentedControl *myCustomButton = [[UISegmentedControl alloc] initWithItems:[NSArray arrayWithObjects:@"Hello",nil]];
[myCustomButton setSegmentedControlStyle:UISegmentedControlStyleBar];
[myCustomButton setTintColor:[UIColor blackColor]];
[myCustomButton setMomentary:YES];
[self.view addSubview:myCustomButton];
, UIBarButtonItem, , . .:)
, : - :
