Attached are two images. The first shows my current main.storyboard, and the second shows my problem when I run the app. I have a tab bar controller that has two tabs. On the first tab there is a button. When pressed, the button goes to another view controller with content. At the top is a Navigation bar with a back button. After viewing content, I press the back button, and am back on the original page with the button, but the tab bar is missing. I have seen a few answered questions, but it appears they made their tab bar in the view controller instead of the storyboard. Another says that I should never return to a previous view unless I use an unwind segue. Is this true? If so, how do I set up an unwind segue. If not, how do I fix this problem otherwise? Thank you. https://i.stack.imgur.com/IYmX2.png https://i.stack.imgur.com/7slt5.png
Tab Bar mysteriously disappears?
1.8k Views Asked by swift-newbie At
2
There are 2 best solutions below
Related Questions in SWIFT
- Overlapping UICollectionView in storyboard
- Cannot pod spec lint because of undeclared type errors
- Swift code with multiple NSDateFormatter - optimization
- How do I add multiple in app purchases in Swift Spritekit?
- cellForRowAtIndexPath and prepareForSegue return different label colors
- Getting this message in my console in xcode "Ignoring restoreCompletedTransactionsWithApplicationUsername: because already restoring transactions"?
- Change background of an Accessory View in a UITableViewCell
- fade in an bounce animation subview
- Create a PFObject and PFRelation after PFUser Sign Up
- Swift 2 - Pattern matching in "if"
- How do I give inputs through NSURL
- How do I add custom cells to TableView in Swift?
- UIWebView not loading URL in simulator
- Compiler complains that 'Expression resolved to unused function' when removing index in array of functions
- Cast from 'Int?' to unrelated type 'NSNumber' always fails
Related Questions in IOS8
- UIPopoverPresentationController not rendering properly
- UICollectionView cell height/scrollable content behaving strange/incorrect
- My application has the camera access permission by default.How can i turned it off and ask for permission?
- iOS coordinates for iPad and iPhone game using spritekit
- App crashes when I deselect an item in a UICollectionView
- Swift - Issue trying to access to Singleton object
- how to hide the section title when clicked search bar using ios 8 UISearchController?
- poptorootviewcontroller and instruct rootviewcontroller to perform some action
- Animation issue on iOS 7 but not on iOS 8
- Javascript function not getting called from HTML file
- Table View Cell After Upgrading Project from XCODE 5.x to 6.x
- Third party app iOS Storage usage statistics
- UI Local Notification - Background Reschedule
- Reposition legal label ( MKAttributionLabel )
- How can I animate an SKShapeNode in swift?
Related Questions in XCODE6
- iOS: None of the valid provisioning profiles allowed the specific entitlements
- UIWebView not loading URL in simulator
- How to set the time of Local notification in app to random between two times? (swift)
- Can Clang Static Analyzer be used with Swift?
- Xcode Interface Builder loading XIB file show view with transparency
- Getting dyld_fatal_error Xcode 6.3.2
- UIVIew from XIB with Autolayout to UItableView Header
- How can I get the length of text entered into UITextView as the user types?
- SDWebImage error for loading image
- UIWebView contents are not showing
- How can I get an image to fit the whole screen?
- Custom font iOS 8 not effect in device
- Swift: NSDate losing sub-Second precision after loading
- Property 'package_number_7' not found on object of type 'User *' after Lightweight Migration
- Xcode 6 archive process does not fire pre/post/build phase script for auto build increment
Related Questions in UITABBARCONTROLLER
- Using Navigation Controller in TabBar Controller Iphone 6+ IOS 8.3
- How is it I can animate the change in bar tint color of a UINavigationBar but not a UITabBar?
- How i pass Data from SlideOut TableViewController to TableView embedded in ViewController
- UITabBarController customisation page top bar colour swift
- view with navigationController over tabBarController
- How to pre-render MKMapView from other viewcontroller?
- Exception when adding UICollectionViewController to UITabbarController
- UITabBar Wierd Height Difference
- Swift: How to execute an action when UITabBarItem is pressed
- How to add custom gesture to a tab in UITabBarController
- Hide a UIViewController (Screen) in swift
- Set the second tab as default tab in swift
- Found nil while unwrapping an Optional Value
- Modal view controller pushed from tab view controller always returning to first tab
- Scrollable tab bar in swift
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
The problem is in the wiring of your ViewControllers. You have probably embedded your
UITabBarControllerinside theUINavigationControllerand not the other way around.A correct layout looks like this in Interface Builder :
To reproduce:
UITabBarController. This will come with 2UIViewController's already wired in.UIViewController's (let's call itVController1) and click on Editor / Embed in / Navigation Controller. This wires theVController1to live inside aUINavigationControllerthat is inside theUITabBarControllerUIViewControllernext toVController1Let's call itVController3VController1andVController3, for example with a button.I hope that's clear enough