I add a Navigation bar and for the left bar item I set the UIView. Inside the view, I add a search bar.
It looks ok, but it is "disabled". It is not white and I can't click on it:
What is the problem?
When I click on the right bar button three dots are being appeared on the right of left bar item that is navigation icon, Help me to remove these three dots and let me know why these dots appear even there is nothing alongside the navigation icon and there is no error in programming
Delete button title as you've used image into the button. Button's width is not enough to show both image and title text all together. This is true for bar button also.
I am adding a right bar button in navigation bar but when i click out side of navigation bar as shown in picture below it get pressed i don't know why it is behaving like this. I have added this button from storyboard.
I am trying to create a bottom toolbar. So I dragged I Bar Button Item to the View Controller and it was automatically position at the bottom, see image below:
But when I run the app, it doesn't show the bar at the bottom.
I already added:self.navigationController?.navigationBarHidden = false
I think it's just only a constraints problem.
First of all check your Document Outline near to the left of your table, to see the position (toolbar is just below table):
Add your constraints and pay attention to all options as shown in the picture:
Then, take a look to the size inspector, for the table view:
And for the toolbar:
This configuration working both in portrait/landscape mode.
Drag UIToolbar controller directly instead of only UIBarbutton item.
self.navigationController?.navigationBar.hidden=false
Have you set constraints of UIToolbar? I just guess it can be one of the reasons why you cannot see your barbuttoitem.
The navigation bar and the toolbar are two different things and the toolbar is hidden by default. Try setting the toolbar hidden attribute to false.
Sometimes bar button item and bar button do not show when we present our screen. On screen we can then not see bar button item and bar button. So we need to push our screen if we want bar button item and rightBarButtonItem.
I want my top nav bar to be hidden, with a menu icon in the top left hand corner (same position as on the nav bar). When the button is activated the top nav bar appears and the menu icon appears in the same position on the nav bar. So the top nav bar show hides like the tap screen function, but rather than tapping anywhere on the screen its on a specific button. Is this possible? (i'm a designer not a developer btw)