Hi,
In my Ipad app i started with a single UIBarButtonItem at the right: That + picture is just white.
self.switchView.navigationItem.rightBarButtonItem = nil;
 UIBarButtonItem *rightButton = [[UIBarButtonItem alloc] initWithImage:[UIImage imageNamed:@"add.png"] style:UIBarButtonItemStylePlain target:self action:@selector(insertKnoopPressed)];
    self.switchView.navigationItem.rightBarButtonItem = rightButton;
    [rightButton release];
With result: http://img257.imageshack.us/i/schermafbeelding2010102.png/
Now i have implemented the UISegmentedControl with the same + button, and also some additonal buttons:
NSArray *segControlItems = [NSArray arrayWithObjects:
        [UIImage imageNamed:@"location.png"], 
        [UIImage imageNamed:@"house.png"],
        [UIImage imageNamed:@"add.png"],
        nil];
 UISegmentedControl *segControl = [[UISegmentedControl alloc] initWithItems:segControlItems];
 segControl.frame = CGRectMake(0, 0, 135, 30);
 segControl.segmentedControlStyle = UISegmentedControlStyleBar;
 segControl.momentary = NO;
 [segControl addTarget:self action:@selector(segAction:) forControlEvents:UIControlEventValueChanged];
 UIBarButtonItem *segBarItem = [[UIBarButtonItem alloc] initWithCustomView:segControl];
 self.switchView.navigationItem.rightBarButtonItem = segBarItem;
 [segControl release];
 [segBarItem release];
With result: hhttp://img714.imageshack.us/i/schermafbeelding2010102.png/
How can i have the same background color then the first button? Because this layout sucks.
Thanks