iphone - How can I use an UIBarButtonItem style without the UIToolBar
Can I show a black style UIBarButtonItem in my view without the underneath UIToolBar? The UIToolBar always has a kind of border thing, I want the system UIBarButtonItem in black just like a black standard cancel button, but not the UIToolBar How can I do it? Thanks there is a cheeky hack that will help you with this. you want to use a UISegmentedControl with style set to UISegmentedControlStyleBar and only one item. You also need to setMomentary to yes - to make it behave like a button: UISegmentedControl *myCustomButton = [[UISegmentedControl alloc] initWithItems:[NSArray arrayWithObjects:@