UIToolbar in iPad -


I have two buttons on both ends of the navigation bar (in the iPad extension view controller).

So I created two UIToolbar and I set them as Left and Right Bert Button.

However, there is some color variation in the navigation bar.

The attached picture for your understanding.

alt text

The code I used,

  UIToolbar * leftToolbar = [[Uitoolbar alloc] initWithFrame: CGRectMake (0, 0, 200, 45)]; NSMutableArray * lItems = [[NSMutableArray alloc] initWithArray: [Byte toolbar item]]; UIBarButtonItem * lb1 = [[UIBarButtonItem alloc] initWithTitle: @ "Home" style: UIBarButtonItemStyleBordered Target: Self-action: @selector (home :)); UIBarButtonItem * lb2 = [[UIBarButtonItem alloc] initWithTitle: @ "New Doc" style: UIBarButtonItemStyleBordered Target: Actions: @selector (newDoc :)]; [Iitams dot object: lb 1 etndex: 0]; [IITs.com object: LB2 at index: 1]; [Byte Toolbar Set Itims: Animated Animats: Yes]; [LIT Release]; LeftToolbar.barStyle = UIBarStyleBlackTranslucent; LeftToolbar.tintColor = [UIColor clear collar]; Self.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc] initWithCustomView: leftToolbar];  

Can you help me avoid this color variation?

Is there any other way to do this type of button without using UToolbar?

Thanks,

Gopi

Simply remove the navigation bar and add the tool bar, why are you adding the toolbar to the navigation bar?


Comments