YosiFZ
YosiFZ

Reputation: 7890

UINavigationItem with titleview

In my app i have a UINavigationController. and i want to add method that when the user press the navigation something will happen.so i add a button titleview:

self.navigationItem.titleView = self.titleButton;

And now i want to add two buttons as the rightBarButtonItems:

self.navigationItem.rightBarButtonItems = [NSArray arrayWithObjects:self.editButtonItem,self.aToZButton, nil];

And i noticed that this two things can't work together,if i add the titleview i only see one button in the right.

Any idea for any solution? other way to be able to click UINavigationBar?

Upvotes: 1

Views: 119

Answers (1)

Rajesh
Rajesh

Reputation: 860

Check the frame of the titleButton that you have created. May be reducing it a bit may allow you to add two buttons.

Upvotes: 1

Related Questions