I'm working on a iPhone app with storyboard.
I need to put a TabbarController in a containerView like this:
The red rectangle in the controller on the left is a view I need to show always in the app.
I put 6 item in the tabbar so the tabbar show the "more" item.
When I tap on the "more" item I can normally customize the tabbar, but when I tap on "done" button nothing happens: the customization sheet don't disappear and I can't tap on the other items in the tabbar.
If I use the tabbar not in the containerView alla works fine.
Any help?
Thanks in advance!
Simone
Related
I have a tabbar controller in which there are two view controllers. One has navbar shown (VC1), one has navbar hidden (VC2). I push to VC2 using tabbar icon, then I navigate to VC3 from there via UIButton and now tabbar is hidden using
hidesbottombarwhenpushed = true
I then navigate BACK to VC1 using the following
dvc.tabBarController?.selectedIndex = 0
the problem is, no matter what I set to false for hidden, I cannt get the navbar or tabbar to reshow.
Can someone tell me the correct way to hide/show navbar/tabbar and programatically navigate froma view back to a home page tab with hiding/showing navbar/tabbar?
I have been trying to properly setup a navigation bar in one of my View Controllers for an hour now and have not found any working solutions.
I control-clicked on a button on my app's initial view controller(1st VC) and dragged to another view controller(2nd VC) and selected "modal" as the action segue.
I then added a navigation bar item to my 2nd view controller.
When I run my app on my iPhone, I can tap on the button on my app's initial screen and it will take me to my 2nd VC, and the 2nd VC does display the navigation bar, but the navigation bar does not have the default iOS 7 back arrow to let me go back to the app's initial VC.
I was under the impression that this could be setup exactly like I did above and that the back button functionality would be included by default.
Am I completely lost? Do I need to further customize navigation bar programmatically or with a tick box in the attributes inspector? Is "modal" the wrong action segue option?
I basically just want to have navigation bars at the top of a couple of my VC's so that the user can easily get back to the app's initial screen.
Thanks for the help.
Since you are presenting your second screen (2nd VC) as MODAL from your first screen (1st VC), you will not see the back arrow button on navigation bar. Your understanding about back button works for Navigation view controllers (push segue). For MODAL you need to put a cancel button on second VC's Nav bar and put a dismiss action for that.
i have added back ground image to UINavigationBar in drawrect method,image added properly.and also i added right bar button item to Navigation bar in View did load method.
my problem is i navigate to detail view and when i am coming back to rootview controller, right bar button item is not visible but button action working on navigation bar right side
Can Any one help to solve this
I would remove the background image. Apple engineers told me not to do this very thing. I would use the customise options in ios5 instead.
I orignally had a tab bar to change views within my app. However now I've gotten rid of the tab bar and have a toolbar with a menu button. When this button is pushed, a popover comes up with buttons that will hopefully change my screen.
When you create a UIPopoverController you set a UIViewController which can have a class where you define a protocol for the controller that creates the UIPopoverController notified of any action...
I am working on an app which has UITabBar at the bottom of app. One of the tab holds UITableviewController and another holds UIViewController. UITableViewController is customized to hold grid of images. When I tap on these images, my App pushes another view in navigationcontroller but at this time I remove tabbar and put toolbar. So far everything works fine. But when I go back to parent view I see white space at the bottom of it. I am hiding toolbar in viewWilldisapper so that I can not see on parent view.
Can anyone tell me where I am going wrong?
Regards,
Sumit.
You don't need to hide toolBar in viewWillDisappear. When you use the method hidesBottomBarWhenPushed to hide tabbar it will automatically hides and display when you push and pop. Try removing the piece of code where you are hiding toolBar in viewWillDisappear.