Questions tagged [uinavigationcontroller]
The UINavigationController class implements a specialized iOS view controller that manages the navigation of hierarchical content.
11,313
questions
0
votes
1
answer
19
views
Adding a prototype cell to a table view in storyboard makes navigation bar title small
I have a View Controller which segues from a previous controller that has large titles. The navigation bar in the navigation controller has the Prefers Large Titles checkbox checked.
I have added a ...
0
votes
0
answers
21
views
How to open a new View Controller (inside UINavigation stack) from UICollectionView Cell?
I'm a new in iOS development and I faced a difficult task for me :)
I have a View Controller(ViewController()) with UICollectionView. When I click on a UICollectionView Cell, a new View Controller(...
0
votes
0
answers
16
views
Gap glitch between navigation bar and table view only on iPad
This issue does not exist when my app is run on the iPhone, and it also doesn't exist in the simulator, but whenever I run the app on my physical iPad this weird gap shows up between the navigation ...
0
votes
0
answers
11
views
UITabBar image incorrectly positioned on iPad when inside splitview + navcontroller
I have a hierarchy like so:
In storyboard, on iPhones (in all orientations), and when using iPad split screen with another app (see screenshot below with contacts side by side) this all works great.
...
0
votes
1
answer
28
views
iOS: How to scroll navigation bar as view controller scrolls
I want to scroll the navigation bar as the user scrolls on the view controller. This should be similar to how the YouTube app's home page is working. When the user scrolls down, the navigation bar ...
-1
votes
1
answer
28
views
Bar item not show when I use segue programmatically
I’m building an app which has a main vc that only existing user can log in to. The main page is the initial vc so I embed in the navigation bar to it. When I open the app in the first time I can see ...
0
votes
0
answers
12
views
largeTitle of navigationBar collapse after refreshControl.endRefreshing swift
Encountered a problem: largeTitle of navigation bar collapsing to small title ~once per 20 attempts after refreshControl.endRefreshing().
tableView is first subview of subviews hierarchy, and top ...
0
votes
0
answers
13
views
UINavigation Push Controller not working ios 12.4 iphone 8 xcode 13.2
Unable to push the controller on the next screen, On other devices, it's working perfectly just an issue on iPhone 8, ios 12.4.
let storybaord = UIStoryboard.init(name: "Main", bundle: nil)
...
0
votes
1
answer
22
views
UISearchBar not working or disabled after adding Tab Bar or Navigation Controller
I implemented a search bar to filter the result. It was working perfectly but then when I embedded this View Controller with a Navigation Controller, which is also associated with a Tab Bar Controller,...
0
votes
1
answer
45
views
Xamarin iOS: Custom back button image is too small
I have a custom UINavigationController and the following code in that controller to provide a custom back button image:
public override void PushViewController(UIViewController viewController, bool ...
-1
votes
2
answers
29
views
why is storyboard UITableView not showing
I am a novice to swift. This is my first assignment for UI development. I have done the exercise perfectly and the tableView showed up as expected. The code is as below:
import UIKit
class ...
0
votes
0
answers
32
views
Xamarin iOS: Kill off async event handlers when a view controller is removed from the navigation stack
My RootViewController is a UINavigationController. The navigation stack starts with ViewController which then pushes CustomViewController.
public class ViewController : UIViewController
{
public ...
0
votes
0
answers
9
views
how to set rootViewController of UINavigationController programmatically (objective C)
**Here is my code snippet. I Just want to change rootView before instantiating the View. Currently how it work is Login>Main>and so on. Just want to remove the first one(login) from ...
0
votes
1
answer
20
views
Changing UINavigationController Frame in Swift
How can I change the frame of a UINavigationController? I am trying to build a view to verify a users phone number, and want to present it as a pop up view (not full sheet) and also be able to push ...
0
votes
2
answers
37
views
Missing transition from first view controller to second view controller using navigation controller
I want to create a navigation hierarchy where I want to go to a SecondViewController from FirstViewController using a NavigationController. The FirstViewController contains a button B that I intend to ...
0
votes
0
answers
25
views
iOS: How to remove UIViewController shadow changes as another UIViewController is being pushed/popped
I have two UIViewController objects with a white background color. When I push page A over page B through a UINavigationController, I notice that iOS is adding a shadow on page B during page ...
0
votes
1
answer
38
views
Customize UINavigationBar.appearance() on ScrollViewDidScroll?
Is it still possible to customize the navigation bar on ScrollViewDidScroll now?
For example:
0
votes
1
answer
27
views
Why google-iosched can save fragment state while navigating with navigation component
Overall look at the code, I don't understand why it can be done.
https://github.com/google/iosched
from apps/iosched/ui/MainActivity.kt, It initialized NavController and NavHostFragment, but seems ...
0
votes
0
answers
20
views
How to prevent a double-height UINavigationBar in child UINavigationController on iOS 14?
I work on an iOS app that has split-window functionality, where you can open, close, and resize a secondary window that hosts various types of content in navigation controllers. The setup is:
...
0
votes
1
answer
37
views
UITextView shouldInteractWithURL delegate methods not working through hyperlink
I have refered this but not working for me :How to intercept click on link in UITextView?
I have hyperlink text on UITextView, on click of the hyperlinked text we have to open another View Controller.
...
0
votes
0
answers
14
views
How to add multiply viewcontrollers to navbar inside tabBar programmatically
I have a struct
struct MenuItem {
let tabName: String
let tabIcon: UIImage?
let screenID: Int
}
Init it
let defaultDataSource:[MenuItem] = [.init(tabName: "1 controller", ...
0
votes
0
answers
10
views
UITabbar NavigationBar Button overlap issue
I have used programatically to create tabbar , my views are like
navigationController - > login -> tabbar with NavigationBar button
First tab have : Left bar Image (button (logo), Right (...
0
votes
2
answers
51
views
How to push UIViewController overCurrentContext using UINavigationController
I have a UIViewController that contains a UITabBar. I want to push a new UIViewController that covers the current context (so during the animation it shows the new UIViewController covering the ...
0
votes
1
answer
121
views
Migrate from NavHost to AnimatedNavHost
Hi I'm trying to migrate my Android Studio project from NavHost to AnimatedNavHost, so I have made this changing:
Replace rememberNavController() with rememberAnimatedNavController()
Replace NavHost ...
0
votes
1
answer
30
views
MapFragment becomes slow after navigating back to it from a preferencesFragment
I added a Preferences Fragment to an application. I am using an ActionBar drop-down menu to navigate to the Preferences Fragment and also using the ActionBar's OnUpNavigation button to return to the ...
0
votes
0
answers
18
views
BottomNavigationView with DrawerLayout HostFragment
I have a DrawerLayout in the MainActivity with a BottomNavigationView and a navHostFragment inside.
MainActivity layout
<?xml version="1.0" encoding="utf-8"?>
<androidx....
-1
votes
1
answer
40
views
How to modally present a navigation controller in Swift?
I am trying to present a navigation controller modally,the thing is my navigation bar is not showing any baritems... any ideas? This is my code. If I add a backgroud color to the navigation bar it ...
0
votes
2
answers
38
views
Navigation Controller being Black Screen in swift 5
I'm not using storyboard. I'm embedding my MainViewController into a navigation controller.
func scene(_ scene: UIScene, willConnectTo session: UISceneSession, options connectionOptions: UIScene....
0
votes
0
answers
77
views
Unknown view on top after updating to Xcode 13.3
After updating to Xcode 13.3 my project compiles normally but on top of my main view controller there is an additional empty navigation view which I have to press the back button to get to the initial ...
0
votes
0
answers
11
views
Performing navigation from the first screen to the third screen
I am in this situation where I want to navigate to the RiderViewController (Third Screen) when the app starts up rather than the main ViewController (First Screen) if the user is logged in. The ...
-1
votes
1
answer
50
views
Hiding bottom line on navigation controller in SwiftUI
How do I hide this bottom bar on a UINavigationController with SwiftUI? So far I have found only solutions for UIKit, but nothing for SwiftUI.
0
votes
0
answers
17
views
Swift: NavigationController show nil when open from tapped push notif
At first i try to present viewController and show nothing. Then, i print the navigation controller and return nil. So i expect that's the reason why viewController is not presenting.
This error happen ...
2
votes
0
answers
164
views
How to fix failed to add navigation dependency android studio java
I tried to add a new project using the existing template Navigation Drawer Activity. It really works well. However, I accidentally deleted the mobile_navigation.xml in res/navigation. Now that every ...
0
votes
0
answers
20
views
Incompatible types. Found: 'android.view.View', required: 'androidx.navigation.NavController'
Android studio is sending me an error with this description "Incompatible types. Found: 'android.view.View', required: 'androidx.navigation.NavController'" to this piece of code (the part ...
0
votes
1
answer
28
views
Swift navigation controller black in light mode
faced such an issue that the navigation controller is always black even if I change the appearance to light.
Here is how I create it:
class TabBarController: UITabBarController {
override func ...
1
vote
0
answers
30
views
Swift 5: Unbalanced calls to begin/end appearance transitions for xxViewController when i try dismiss views
i have two errors "Unbalanced calls to begin/end appearance transitions for DonesViewController"(its my last viewcontroller) and the same error fot BottomSheetViewController, when i try to ...
0
votes
0
answers
39
views
Swift/UIKit: Is there any way to present a view outside of the UIViewController/navigationController hierarchy?
I would like to present a custom, banner-style view at the top of my UIKit application that persists for a certain amount of time, and then animates off of the screen. Is there any way to present this ...
0
votes
1
answer
30
views
UINAVIGATIONCONTROLLER doesn't show back button, doesn't do swipe to back: UIKIT
Hey Guys I am trying to use NavigationController for back button and swipe left to back action.
can you tell me what I am doing wrong ?
Could u tell me what else to do ?
P.S. Show instead of present ...
0
votes
0
answers
25
views
Swift 5 - Trying to dismiss all viewcontrollers with navigations and modal presents
im trying to dismiss all viewcontrollers after a few seconds.
I found some solutions for this, but doesnt work for me.
I have 6 view controllers, A, B, C are navigations controllers, and D, E , F use ...
0
votes
1
answer
60
views
Making status bar opaque on iOS >= 15
So, as from iOS 15, its updated how navigation bar looks. If there is no content behind it (eg. we didn't scroll up), it will be transparent. Now this affects status bar as well.
When I hide ...
-1
votes
1
answer
26
views
Globally hide navigation bar in SwiftUI project
I would like to globally hide the navigation bar, so I don't need to do .navigationBarHidden(true) on each view's onAppear.
Is there a global way to do that?
Thanks
2
votes
0
answers
33
views
Swift Key window subview disappearing
I am experiencing some weird behavior with a button I am trying to implement in my app. I have a 'compose post' button that I am adding to the key window of the app. I want to create the button and ...
0
votes
0
answers
37
views
Navigation Controller pushing content down
I am having this issue where the content of my view controller is pushed down after pushing a view controller to the navigation controller and then popping that view controller.
The base view ...
0
votes
2
answers
46
views
open viewcontroller embedded in navigation view in swift UIKit
I'm trying to open my view controller (with storyboard) which is embedded in a navigation view from the scende delegate
i am doing something like this
let mainStoryboard:UIStoryboard = UIStoryboard(...
0
votes
2
answers
104
views
hide back button title on navigation bar not working for iOS 13 and above
I have added the following code to hide the back button title on the navigation bar but it is not working on iOS 15.
UIBarButtonItem.appearance().setBackButtonTitlePositionAdjustment(UIOffset(...
0
votes
2
answers
45
views
Pushnavigation is not working with custom alert in swift
I am using my custom alert to log out of the application
in custom alert, I have tried to log out with firebase after the successful logout using navigation push controller to sign in the controller ...
0
votes
0
answers
26
views
Prevent view to cover navigation bar
I push the new VC using navigationController?.pushViewController(vc, animated: true).
In viewDidLoad I set the view to a custom view:
override func viewDidLoad() {
let clubDetailsView = ...
0
votes
0
answers
80
views
Redirecting one view controller to another using Table view cell selection
I am new to swift . I created the view pragmatically , I embedded the navigation controller with first view . From the first view I want to redirect the user by clicking the table view cell . I added ...
0
votes
0
answers
10
views
Launching new navigation controllers in TabBarController
I have an app that relies on a UITabBarController with child UINavigationControllers. I have four navigations controllers with their corresponding icons as well as a custom "More" button ...
0
votes
1
answer
208
views
UINavigation custom back button image not working in iOS 15
I want to apply UINavigation custom background image and back button image also for iOS 14 everything is working fine but as I try to run the app on iOS 15 back button image not working instead it's ...