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 best solutions below
Related Questions in UINAVIGATIONCONTROLLER
- Switch between UIStatusBar color (black/white) in UINavigationController based app
- UINavigation Bar to turn transparent as user navigates deeper
- Implementing navigation that supports going back to a search result
- Delegates in Navigation Controller
- 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?
- Side menu with dynamic table cell will navigate page but with navigation controller coming as nil
- How do I access a view controller from AppDelegate.m during a background refresh
- Change UIWindow backgroundColor from UIViewController?
- view with navigationController over tabBarController
- iOS back button working weirdly in iOS8
- Add UINavigationController to navigation stack
- NavigationBar not loading when ViewController is programatically presented
- What method is called when UINavigationController is presented?
- Why is the UINavigationBar turning black?
Related Questions in PUSHVIEWCONTROLLER
- Crash on pushViewController
- pushviewcontroller doesn't work?
- Can't Push from one view controller to the next
- How to transparent background when pushViewcontroller
- How to use pushviewcontroller on uitableviewcell swift
- How to push new VC by swiping left in last UIPageViewController
- how to use push storyboards without hiding navigation bar?
- What is different between pushing to a new viewcontroller, and then popping that viewcontroller, and then pushing to it again?
- Passing a Selected Object to a New View Controller via Push
- Unable to use Push segue with Storyboard
- Show a UIViewController when she stop loading (webViewDidFinishLoad) in Objective-C
- UINavigation PushViewController Doesn't Display Next View, But Runs The Code
- White Status bar when pushing TTPhotoViewController using [self.navigationController pushViewController:]
- pushViewController: - how to display in portrait only mode, when device is in landscape mode?
- Problem with pushviewcontroller animation while fetching iPhone contact's image
Related Questions in POPVIEWCONTROLLER
- Override navigation controller back button
- popToRootViewController not removing prompt
- Popview after dismiss modal view controller in swift
- Storyboard - Popping to a View Controller then Pushing Causes multiple pushes
- Navigation bar flashes black on performing popViewController
- How can I popViewController to rootViewController?
- popViewController does not remove UINavigationBar items
- why in UINavigation bar, push and pop are not working proper according (XCode5) ios sdk-7?
- popViewController / viewWillAppear not animated in iOS 5
- Using PushView controller and Popviewcontroller make the app crashes
- prepareForSegue: sender: alternative for popViewControllerAnimated:
- What would be best manner to push viewcontroller from right using UInavigationcontroller?
- reloading data/refreshing data in parent ViewController
- Cart count not updating in navigation bar while popViewController in swift
- popViewController to a UIViewController initialized with a UIStoryboardSegue
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?
use this
[self.navigationController popToRootViewController:YES];