iOS navigation items animates differently when clicked - ios

I need to change the text and action of the navigation item, currently, I am doing it by providing the bar button items. But my problem is when I click it, it shows click only on the item I clicked not all the items I have added to leftBarButtonItems.
I tried using a custom view(UIBarButtonItem(customView: UIButton())). But It becomes smaller and I was not able to resize it. Please see the below image to understand the problem I am having. This is the situation after clicking on the back button. Thanks for your time.

please use custom navigation bar
https://www.youtube.com/watch?v=zS-CCd4xmRY
I hope this is helpful for you

Related

Bar button item not showing

The navigation bar button is not showing in my project. I have created this demo project below to illustrate it. As you can see, the right bar button item is only showing on the greyVC and not the yellowVC. I might be able to add it programatically but that would be my last resort. I want to figure out why it is not showing with this storyboard way.
Do it like this:
And i Got the Bar button In Both the screens..

Navigation bar with page control on iOS

I'm new to iOS developing, I wanted to ask could someone help me how to make a page control(screen sliding) with navigation bar, I have tried a lot of things, I googled a lot but I couldn't find a solution.
I have a button when I click it will open a pagecontrol(rootview for screen sliding) with tableview which will change its data according to pages.
the problem is when I click that button I don't know how to get back to main page.
Can anyone help me?
This is a good tutorial for learning how to create a page controller.
As far as your other problem of getting back to the main page, if you add a bar button item to the root view controller's navigation bar, control-drag to your second view in your storyboard from that bar button item, a "Back" button will automatically appear in the upper left-hand corner of your second view controller.
Hope it helps!

How to reduce the click access length of a tab in uitabbarcontroller?

The title won't clear the actual problem. Let me explain clearly.
I have a tabbarcontoller in the viewcontroller which is the main view controller of the single view application project.
I added Navigationcontrollers to the tabbarcontroller. So that I can navigate(push/pop) from one viewcontroller to other.
I added a subview to the mainview of a single navigation controller.
When I click the button near to the tabbar, it doesn't get clicked and the tabbaritem button gets access and shows that tab.
The below image will explain well,
If I click the show button, it opens the receipts tab.
How to reduce the click access boundary of the tabbar in tabbarcontroller?
I can't get any solution regarding this.
Frankly, i've written a bunch of applications which have controls near the tab bar and i've never encountered such behaviour.
Check if you have custom tabbar controller with custom frame.
Also try to use Reveal App (http://revealapp.com/) to check the buttons' frame at runtime, it will help you to understand what's going on. They have trial version as i remember.
Hope it will help :)
Choose the custom button for this and add in tabbar.

How to manually add a Back button to my NavigationBar?

I would like to know how I can add a back button to my UINavigationBar, I know that If I embed in a Navigation Controller in my main view, that all of this would happen automatically, but that is not what I am trying to do, in fact, the back button could go to any other view I connect the segue to, doesn't even have to be the back.
The back button needs to be the system navigation "back" button, I don't want to have to set image files for my buttons.
I tried dragging in a bar button item in storyboard but nothing shows up, doesn't seem to be doing the trick. The navigation bar was dragged to the view in storyboard (not created programmatically) and it shows up just fine.
I looked at the following similarly asked questions:
-> How do i add a 'back' button to a UINavigationBar manually?
-> How to add a button to UINavigationBar?
-> How to programmatically add a UINavigationBar and a back button on it
but they all point to just embedding the view in a navigation controller, which again, is not what I am trying to do.
If someone can please help me out, provide some sample code I would greatly appreciate it.
Try drag-drop a UIButton object. I have always added manual back button (hardly took the in-built one)

IPad Button DropDown with PopOver Control

I am developing an iPad app and I am trying to implement a series of drop down lists in my app. I have a custom button that is a cell on the UITableViewController. So whenever the button is tapped, it should show a list of options that the user can select and it should set the selected value as button's title. I tried to implement picker view but didn't like it on the iPad. I also tried to implement action sheet and pop over controllers but failed to get the result.
Of all the examples I referred to, it shows how to display popover controllers from bar button item on toolbar or navigation bar but I didn't find any which shows me the implementation for the custom buttons on tableview as one of the rows.
Can someone please guide me on this. If possible a sample code or a tutorial will be of great help.
Thanks for all your time.
I have placed my code in the following link. You can refer it.
problem in setting PopoverContentSize

Resources