Questions tagged [uinavigationcontroller]
The UINavigationController class implements a specialized iOS view controller that manages the navigation of hierarchical content.
11,388
questions
0
votes
1
answer
24
views
iOS UINavigationController How to push view controller from left to right when showing right to left languages
I am planning to localize my iOS application where I have a lot of Navigation controllers and a Home Tab car controller as well.
how do I support navigations from left to right (push view controller ...
0
votes
0
answers
17
views
Converting my smartwatch into a compass for my bike as a accessory
I have seen a bike navigation system called beeline moto black which shows just a arrow for a navigation with less details and moreover it costs a lot and it is not available in India. Now I want to ...
0
votes
2
answers
37
views
UiNavigationController - title in navigation bar is off-center when right side has 2 buttons
I'm using a UINvagigationController for my app, with every page setting their own title and left and right buttons.
Worked perfectly until I needed two buttons to the right. Just setting them as bar ...
1
vote
1
answer
46
views
How to get a UIViewController from a SwiftUI View in a UIKit Navigation Controller
In my SwiftUI/UIKit project, we're using UIKit's Navigation Controller for navigation. Currently, I have a function that gets a UIViewController from a SwiftUI View:
func popTo<T: View>(viewType:...
0
votes
0
answers
10
views
mimic navController behavior of menu item in NavigationView for header views
Is there any way to make header in navigationView behave like menu item in navigationView with navController?
I have implemented a NavigationView in DrawerLayout following Navigation Drawer on ...
0
votes
1
answer
30
views
navigationItem.rightBarButtonItems is not displayed on the root view controller when popToRootViewController is called
In the final viewcontroller of my application, I use popToMainViewController to go back to the first view controller. When the method is called, customized rightBarButtonItems is not displayed. ...
0
votes
0
answers
36
views
My navigation bar's large title is too large getting truncate
I am using navigation controller, and I've set to true its navigation bar's prefersLargeTitle property. Everything works fine, but when the text of my title is too large, it doesn't fit in space. Here ...
0
votes
0
answers
39
views
Init / Load / appear controller before pushing into UINavigationController [duplicate]
I'm redoing some things in a legacy app. One of the key things - before it used self-made push view controller animations, so view controllers that were "pushed" (not in a UINavigation sense,...
0
votes
1
answer
25
views
Is it possible to use UINavigationBar appearance to config differenct bar backgroundColor for differenct controller?
I have a navigation stack like this : TabBarController -> NavigationController->ControllerA-> ControllerB.
The ControllerA and ControllerB are pushed into the NavigationController.
And I want ...
0
votes
2
answers
31
views
Error: Couldn't find a navigation object. Is your component inside NavigationContainer? (how to use useNavigation inside Navigation container)
I am writing a react-native MERN chat app and I am adding a profile page so the user can edit or add his data.the
I want to access this page by a button and using useNavigation but I got the error ...
0
votes
1
answer
81
views
I can't understand what the problem with the Navigator Controller
I have just started working with Xcode(I use Xcode 15.0.1) and wanted to create a small app to understand transitions between ViewControllers. Following the code from an online video, I encountered an ...
0
votes
1
answer
34
views
Why is my root view controller getting pushed along with intended view when using navigationController.pushViewController()?
I have a UIViewController that is inside a navigation controller. When I push another view controller to the navigation stack it is pushed on top of a copy of the root view controller. The copy can be ...
0
votes
1
answer
58
views
How do I determine the first screen to open according to a bool variable
I am developing a project with Swift UIKit and I have a variable called islogin and I want to redirect the user to the homepage if it comes true according to this islogin. islogin comes true but it ...
0
votes
2
answers
61
views
How to navigate from a navigation view to another navigation view with button click in Swift
I am trying to navigate from one navigation view to another with button click. The flow should be Content View -> Login View -> Password View. I successfully navigated from Content to Login by ...
0
votes
0
answers
29
views
How to make system UINavigationBar bigger and make it last on 2 lines
I am trying to configure system navigation bar: set new font, make font bold and bigger, and what's most important to make it last on 2 lines. While I can achieve first 2 points, I can't achieve last ...
1
vote
1
answer
372
views
iOS 17 - Navigation Bar is not immediately visible when adding Navigation Controller in Xcode 15
I am trying to add navigation to my iOS app. I am simulating an iPhone 15 with iOS 17 on Xcode 15 and Swift 5.8.
I have seen in several tutorials that when Navigation Controller is added to storyboard ...
1
vote
1
answer
38
views
Detect or get notified when the user taps the back button on the navigation bar
I have a fairly basic app which has a UINavigationController with a root UIViewController which we can call home.
From the home screen, we push an article UIViewController onto the existing ...
0
votes
2
answers
23
views
iOS doesn't show tab bar after popping a view controller with hidesBottomBarWhenPushed sets to true
I have an issue with the hidesBottomBarWhenPushed.
It works correctly when pushed (hides tab bar) and when popped (shows tab bar). But I have this little gem:
There is a UITabBarController which has ...
0
votes
0
answers
33
views
How to present UIViewController to landscape and dismiss to portrait without ever rotating previous ViewControllers?
I cannot share any code or images about the project, that's why I will try my best to explain the situation.
The app is forced portrait mode but there is only one case where I need to present in ...
0
votes
1
answer
36
views
Not able to Navigate to root viewcontroller(Home) in swift
I have added NavigationControllerScene to ViewController and made it initial viewcontroller in storyboard
code: if I use below code tap on testBtn not able to go to ViewController1. why? i want show ...
0
votes
0
answers
15
views
Pushing a view controller from SideMenu pod causes a flash/dark screen for a second and appears normal
It is only appearing when I am make tab bar programatically, when using the tab bar controller with storyboard it is not showing this blink. For a custom tab bar I need to use the programatically made ...
0
votes
0
answers
33
views
How to connect Navigation controller and Navigation Drawer in jetpack compose material 3?
I'm trying to link NavController and Navigation Drawer, but the emulator doesn't show what I'm switching.
route is included in the data class:
data class DrawerItem(
val title: String,
val ...
0
votes
0
answers
57
views
UIViewController addChild and translatesAutoresizingMaskIntoConstraints
I see some weird behavior concerning translatesAutoresizingMaskIntoConstraints when using addChild.
I created a UITableViewController programmatically, put it inside a UINavigationController, also ...
0
votes
0
answers
18
views
Can I integrate a navigation graph inside a fragment in my app with multiple fragments and a tab layout?
I am making an app which has 3 fragments tablayout. And in one of the fragments, I want to add navigation-graph. Is it possible to achieve this?
0
votes
0
answers
29
views
How can I stop the transparent area above the navigation bar when pushing my view
Here is a video of what is happening:
https://youtube.com/shorts/Hu4RbQZgcvQ?feature=share
I am using default settings for the navigation bar. I have tried setting background colour for the navigation ...
-1
votes
1
answer
57
views
Push View Controller When Notification Is Tapped
I have a Storyboard app with a UINavigationController as its Storyboard Entry Point. Its normal main view is a ViewController called "ViewController". What I want to have happen is push the ...
-1
votes
2
answers
43
views
Navigation controller bar is low for no reason
I created a Tab Bar Controller, with 4 navigation controllers each containing one view controller, but on these view controllers, the bar titles are super low. It doesn't matter if I choose large ...
0
votes
0
answers
27
views
Navigation between two VIPER Routers doesn't work unless I dismiss
I'm trying to implement a feature where I aim to open one VIPER module inside another VIPER module. But it only works if I use "dismiss", which I don't want to do. I'd like to be able to ...
0
votes
0
answers
16
views
Navigation Bar No Longer Showing from Storyboard in Controller - Swift (Updated View Controller To Handle Opening Links WEBVIEW)
With the following code, I was able to display my Navigation Bar build on Storyboard, however, andy URL links would not open and were dead. I found my ViewController needed a way to handle using a ...
0
votes
0
answers
16
views
TableView Scrolling Weird Behavior with NavigationBar
I am facing an issue and read almost all the related topic in StackOverFlow.
When keyboard open in chat VC nav bar moves up. When I do scrolling behavior it's going blurry to translucent.
I just want ...
0
votes
1
answer
36
views
push VC while dismissing previous two presented VCs
I have VC1 that is in navigation controller, we are presented VC2 from VC1, then VC3 from VC2. When I click button in VC3, I need to dismiss VC2 and VC3, after which push VC4 to the VC1
So this
VC1 (...
-2
votes
1
answer
46
views
Why my navigation controller has like a margin
(https://i.stack.imgur.com/CSyxU.png)
Im creating this view programmatically and is taking a lot of space between the navigation bar and safe area I suppose, is there any way to place this without any ...
0
votes
0
answers
19
views
UINavigationBar make always with blur effect
On iOS 16 at least when you scroll UITableView navigation bar becomes with blur. But when we don't have any scroll, how to force UINavigationBar be with blur?
I'm pretty sure it's so common question, ...
0
votes
1
answer
26
views
ViewController showing extra left item out of nowhere if I do a segue from another VC
I currently have a setup of 2 view controllers with the 1st one embedded in a navigation controller. I set up a segue from the 1st to the 2nd which works. However, after trying to set up another segue ...
0
votes
0
answers
44
views
Navigation controller issue after presenting a view controller
im trying to present my view controller and it is presenting fine, but status bar color seems having some shadow, see the attachment
But i require
What is the reason for that shadow, i even tried ...
0
votes
1
answer
27
views
UISearchBar always appears with gray tint when placed in navigation bar via a search bar controller
I have been search for over two days now and simply could't find an answer. Hope anyone out there can help?
In short, the project I am working on holds a searchbar in its navigationbar.
This ...
0
votes
1
answer
34
views
NavBar not shown well Swift
I don't know why my navigation bar don't shown well.
In the picture below, you can see the space between safe area and my navigation bar.
How I can resolve it?
here my custom tabBar
class ...
1
vote
0
answers
48
views
Getting IllegalArgumentException when navigating with NavController in Android: How to resolve this crash?
I am facing an IllegalArgumentException when trying to navigate the with NacController.
here is the detail of crash
`Exception java.lang.IllegalArgumentException:
at androidx.navigation.NavController....
0
votes
1
answer
42
views
Navigation from login screen to TabBar Swift
He everyone, I work on my project.
Below my storyboard and my old code.
I want to delete the Tabbar in the storyboard and created by code. I did it.
So if my tabBar is not set on any storyboard, how I ...
0
votes
0
answers
146
views
Show UIKit PopUp in SwiftUI View
This question is quite similar to this question however, the solution there does not work for me.
I have a predominantly UIKit app and now we are building some views using SwiftUI.
To show alert pop ...
0
votes
0
answers
5
views
How can navigate to a fragment from dialog fragment using navigation graph - Android
I have a dialog fragment and fragment and I am using navigation graph in the application, And for switching between fragments, I am using actions. So here, I want to direct a user to home screen when ...
1
vote
1
answer
135
views
UISearchController in navigation controller not working properly on compact iOS devices
image 1
this is the initial estimated behaviour.
image 2
after searchbar became active this is the behaviour.
image 3
once after changing the orientation to landscape, keyboard dismissed along with ...
1
vote
1
answer
50
views
Why not able to navigate from WKWebView delegate method "didFinish" in swift
I am showing CCavenue Url in web page and my all WKWebView delegate methods are called but the thing is I'm unable to navigate to another viewcontroller from didFinish method
code: here am presenting ...
1
vote
1
answer
63
views
Loading UIkit Views and swiftUI view from SwiftUI NavigationView With stack style navigation
I wanted to create common class for navigation bar and navigationView used throughout the project in SwiftUI.
In my project some of the screens are in UIKit and some of the screens are in UIKIT.
What ...
1
vote
0
answers
38
views
Set `titleView` of `UINavigationItem` to view of a child `UIViewController` without adding to navigation stack
I have a UIViewController, and I want to use its view as the titleView for a UINavigationiten. If the View Controller is a child of the top view controller, the app crashes when I set the titleView, ...
0
votes
0
answers
10
views
UITableView showing black screen and grey bottom
This is What it looks like Table View is in
I am using Firebase for Authentication, when I logout and Login again to the app with the account, I get this error.
This is my TabBarViewController (...
1
vote
0
answers
57
views
Xcode 14: custom inputAccessoryView appears prematurely, causing broken push animation
After upgrading to xcode 14, override of the inputAccessoryView of a UIViewController causes animation issues during push / pop UINavigationController transitions. (on xcode 13, no issues)
...
0
votes
1
answer
87
views
Pushing ViewController works by button, but not with delegate
The storyboard looks like this
NavigationController -> HomeScreenVC -> LogInVC (modally)
When my logIn is successful I want to dismiss LogInVC and push MyAccountVC
I made a delegate to announce ...
1
vote
2
answers
54
views
How to push VC from child VC?
I have three UIViewControllers. First one is MainViewController. MainViewController has TabView and, under TabView, childView (UIView). Depending on picked tab, childViewController is opened (on ...
1
vote
3
answers
543
views
View dismiss automatically in swiftUI
.sheet() dismiss automatically, just after open and the also pop the view on which its shown. Here is the gif file that is depicting the behaviour. As I open the google PlacePicker on "Ice Bath&...