I have an application that has a login and sign up screen and when either the 'Login' button or 'sign up' buttons are tapped they push to the tabbarcontroller. However, as soon as the tab bar loads, there is a navigation bar on the top of the first screen. If I use the bottom navigation bar to select the next screen, the navigation bar is gone and this is the same for all the screens. If I then go back to the first screen, the navigation bar on the top isn't there. I have the code written for the navigation bar to be hidden on all the views but it still shows with the back button. I have managed to remove the back button as by clicking on it, it goes back to the login and signup screen. I have tried changing the root view controller to the UITabBarController but the navigation bar on the first screen is there and when I navigate to the next screen and back, the top nav bar is gone. Been trying to remove it for a long time and cannot figure out how to do it. Apologies if it this is a simple and easy issue.
How to remove navigation bar from the first UITabBarController view?
1.1k Views Asked by AmCon At
1
There are 1 best solutions below
Related Questions in SWIFT
- Navigate after logged in with webservice
- URLSession requesting JSON array from server not working
- When using onDrag in SwiftUI on Mac how can I detect when the dragged object has been released anywhere?
- Protect OpenAI key using Firebase function
- How to correct error: "Cannot convert value of type 'MyType.Type' to expected argument type 'Binding<MyType>'"?
- How to share metadata of an audio url file to a WhatsApp conversation with friends
- Using @Bindable with a Observable type in SwiftUI
- How to make a scroll view of 9 images in a forEach loop open on image 6 if image 6 is clicked on from a grid?
- Using MTLPixelFormat.rgba16Float results in random round-off errors
- Search and highlight text of current text in PDFKit Swift
- How is passing a function as a parameter related to escaping autoclosure?
- Actionable notification api call not working in background
- Custom layout occupies all horizontal space
- Is it possible to fix slow CKAsset loading on Cloudkit?
- Thread 1: Fatal error: Unexpectedly found nil while implicitly unwrapping an Optional value - MapView.isMyLocationEnabled
Related Questions in NAVIGATIONBAR
- Re-using same code for navigationbar items in SwiftUI
- Backgroundcolor NavigationBar and Scaffold differ
- Issue displaying top navigation buttons and link in one column on smaller screens
- SwiftUI: Why do I get duplicates in my TabView?
- NavigationBar indicatorColor blips when changing the NavigationDestination
- Rendering a background image matching window frame, and under navigationTitle, in visionOS
- Any way to Disable or Prevent Status bar and Navigation bar from popping up Permanently when sliding in within app?
- rtl support for expo-router bottom tabs
- Css navigation bar, Where am I getting it wrong?
- What is the default color used for NavigationBar in flutter
- Activity Indicator in SwiftUI cannot cover navigation bar
- Swiftui page switch stuck when navigationbar changed in IOS17.2
- NavigationBar not hide in Immersive Mode when show a DialogFragment with Navigation Component-Android Kotlin
- Sticky navigation bar extending to the right side past margin
- Flutter Navigation bottom bar not visible in all screens
Related Questions in TABBARCONTROLLER
- Map list of JSON to Tabbar flutter
- ScrollController to multiple scroll views. Flutter with Cubit
- TabBarController is showing grey colour behind tab bar image
- Changing screen contents by clicking a specific tab
- How to detect TabBar child focus changed in flutter
- The following assertion was thrown during performResize(): Horizontal viewport was given unbounded height
- How to use advanced navigation on Tab Bar Controller
- Navigate to another screen in TabBarView without getting rid of the TabBar
- Swipe a uiView in Swift like Tab View Controller
- Flutter tabs inside page/view without Scaffold
- How do I make a tab and tab bar view dynamic in flutter so that it will ha on the response from an api?
- Flutter: How do I detect tab onclick when the current tab is selected?
- TabBarController viewDidAppear not called when presented view controller dismissed
- How to use multiple tab for single page in Flutter
- TabBarController: Dependency injection doesn't inject into subViewController
Related Questions in ROOTVIEWCONTROLLER
- Button Tap - ShareSheet rootViewController Issue
- How do i set/change the Root ViewController as a UINavigationController when the user opens the app a second time in swift?
- How to pass rootViewController to Google sign-in in SwiftUi?
- How to detect if button was pressed after app restart in swift?
- "Cancel" button (UIBarButtonItem) not working in iOS view controller
- SwiftUI [ShareSheet] connection invalidated. Attempt to present which is already presenting
- when need to switch the rootViewController
- SignUp Button Not Working While Handling RootViewController?
- How to get rid of message " 'windows' was deprecated in iOS 15.0: Use UIWindowScene.windows on a relevant window scene instead" with AdMob banner?
- viewWillAppear not being called after popToRootViewController
- getting bugs with viewController instantiation from SceneDelegate
- If i logout and login then unable to login for the first time, why? in swift
- (Objective-C) Difference between accessing the navigation stack through the window.rootView and keyWindow
- How to do signin / signup and logout navigation using userdefaults in swift?
- why i am not able to move from loginpage 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 # Hahtags
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?
If you want to show navigation bar on your view controller, use your ViewWillAppear method:
To hide that navigation bar after pushing another view controller, you can simply hide it:
Please leave a comment here if it works as you expected or not.