Let me specific. I have three XIBs. From the first XIB i used pushViewController and got into the second. From the button click in second XIB i got into the third. The thing is, On the click of Cancel button in third ViewController I have to go the first XIB. How is this possible? I am stuck there. Help me please. I used the navigationController to push the viewControllers. I have already used the popToRootViewController: but it popped only to the second XIB.
How can I popViewController to rootViewController?
1.1k views Asked by thoughtbreaker At
1
There are 1 answers
Related Questions in UINAVIGATIONCONTROLLER
- Navigation Controller not working after adding Tabbar controller
- Open View When Notification Tapped
- Present UIViewController using sheetPresentationController inside UINavigationController
- Navigating two times from landscape to portrait
- Swift arabic version, delaying happening after click back or push a view controller, in the navigation bar
- iOS 17 - SwiftUI push navigation animations start breaking
- performSegue() works to show (push) either of two UIViewControllers, but one has nil navigationController
- hidesBottomBarWhenPushed is not working when using UIPageViewController swift
- iOS UITableView content goes under UINavigationBar weird bug when inputAccessoryView containing UITextView shows keyboard
- UINavigationController glitchy animation when pushing new view controller
- passing date value in navigation-compose
- why navigationbar is overlapping the view which is below of it when dragging?
- iOS UINavigationController How to push view controller from left to right when showing right to left languages
- Converting my smartwatch into a compass for my bike as a accessory
- UiNavigationController - title in navigation bar is off-center when right side has 2 buttons
Related Questions in PUSHVIEWCONTROLLER
- How to open an application or a program in Python?
- Swift UIKit / presenting UIAlert blocks pushing VC
- Interactive push view controller
- how to use navigation controller programaticaly?
- using pushViewController in containerView Not work
- Can't push a view controller again after popping it
- Push viewController not showing in AppDelegate
- Calling [UINavigationController pushViewController:animated:] is no-ops and it will trigger another pushViewController
- Swift: How to cancel a delayed pushViewController?
- how to pass data from cell to another ViewController
- How to pass collectionview cells index value to nextviewcontroller(using push navigation) in swift
- Push to UIViewController from SwiftUI
- Navigate to root view-controller from modally presented view controller
- Why doesn't my .pushViewController work from didSelectItemAt in swift
- hidesBottomBarWhenPushed is not working when tabbarcontroller-viewcontroller's are embedded in navigation controller
Related Questions in POPVIEWCONTROLLER
- Pop single view on each tab tap
- popViewController after dismiss Modal VC Swift
- Change a list of presented view controllers in swift like
- Swift: How to pass data when popping view controller
- Cart count not updating in navigation bar while popViewController in swift
- reloading data/refreshing data in parent ViewController
- Show UIView When Popping Back on a Navigation Controller
- How to dismiss viewcontroller and pop to root viewcontroller swift?
- popViewControllerAnimated: called on UINavigationController while an existing transition or presentation is occurring
- Pass data to previous viewcontroller VIPER
- popViewController and then immediately present an alert controller
- (Swift) popping back to navigation controller
- Pop to next viewController in ios
- iOS 13 and UINavigationBarDelegate::shouldPop()
- Why TableView does not reload data after popViewController?
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?
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)
use this
[self.navigationController popToRootViewController:YES];