Lets say i have ViewController A with 2 buttons, each is segueing to ViewController B and C (one button to View B and other to C).From ViewController C I segueing to ViewController D. All the ViewControllers are with Navigation bar so from view B i can return to A, and from view D i can return to D->C->A. The problem is when i segueing between view D to B: the segue is performed but now in the navigation bar of B i retuned to view D and i want B will return to A like it should. what is the solution????
segueing between view controllers with navigation controller
863 views Asked by liron At
1
There are 1 answers
Related Questions in IOS
- URLSession requesting JSON array from server not working
- Incorrect display of LinearGradientBrush in IOS
- Module not found when building flutter app for IOS
- How to share metadata of an audio url file to a WhatsApp conversation with friends
- Occasional crash at NSURLSessionDataTask dataTaskWithRequest:completionHandler:
- Expo Deep linking on iOS is not working (because of Google sign-in?)
- On iOS, the keyboard does not offer a 6-character SMS code
- Hi, there is an error happened when I build my flutter app, after I'm installing firebase packages occurs that error
- The copy/paste functionalities don't work only on iOS in the Flutter app
- Hide LiveActivityIntent Button from Shortcuts App
- While Running Github Actions Pipeline: No Signing Certificate "iOS Development" found: No "iOS Development" signing certificate matching team ID
- Actionable notification api call not working in background
- Accessibility : Full keyboard access with scroll view in swiftui
- There is a problem with the request entity - You are not allowed to create 'iOS' profile with App ID 'XXXX'
- I am getting "binding has not yet been initialized" error when trying to connect firebase with flutter
Related Questions in IOS7
- How to make some buttons of tableView cells clickable and some unclickable | iOS
- Customise Tab Bar with rounded button Issue swift
- Get a framework's Bundle Identifier programmatically
- Change swift SKSprite node animation based on velocity
- How to add custom button on AVPlayerViewController in Objective -C iOS?
- Avoid performSegue multiple times
- Downgrade iPhone 5s in iTunes recovery mode
- Upload file to server using SCRFTPRequest
- The socket closes after 3 minutes after putting the application in the background
- What causes undefined is not an object (evaluating 'win['Ionic']') during ionic build?
- iOS 7 and TLS1.2 support
- Using StringWithFormat generates different results using float and long
- iOS development certificates Issue
- How to show progress bar for web service call in ios app
- Samsung Galaxy S8 navigation bar overlays fixed position div
Related Questions in SEGUE
- performSegue() works to show (push) either of two UIViewControllers, but one has nil navigationController
- Delegate on Delegate
- How to perform segue from tableview cells to different view controllers
- Why is windowDidLoad() is called twice in a segue?
- How do I get it so my previous view doesn't show up behind my new view in the Xcode Simulator
- Segue and attempt to present whose view is not in the window hierarchy
- ViewController showing extra left item out of nowhere if I do a segue from another VC
- How do I segue from one SwiftUI view to another, when the object i want to be clicked is a custom element in a carousel?
- Cannot assign to property: 'detailDic' is a 'let' constant
- Segue not getting called programmatically only if button pressed
- Programmatically opening a window in Swift 3 MacOS
- Xcode has no segue with identifier
- Prepare and Perform segue throws different values
- Prepare segue throws nil
- Swift: How to save data to var in Model form segue?
Related Questions in XCODE5.0.1
- New iTunes mandatory about Xcode version
- Access an iPads Device Settings using UIAutomation
- How to generate a pdf with multiple pages ios7?
- 3D object in iOS application
- Xcode 5 webpage won't fill to UIwebview
- ios 7 xcode 5.01 app doesnt start after validate components
- Xcode 5.0 quit unexpetedly while using the automator plug-in
- UIActivityIndicatorView freezes when moving from one UIViewController to another UIViewController in storyboard by using custom AnimationTransition?
- Facebook profile picture not showing in UIImageView?
- segueing between view controllers with navigation controller
- How Resolve ImageAssest Complile time?
- limiting the view height of uitabbarviewcontroller ios7 without storyboard
- Providing *hint* in text field in ios 7 as edittext field in android
- Getting various memory leaks while accessing AddressBook in iOS 7
- error in sqlite3 table creation 'NSInternalInconsistencyException'
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)
This can be done using two ways as far as i know.
1) Use a custom back button on D controller
2) Change the stack of navigationController i.e NSArray of self.navigationController.viewControllers in the class of D controller
Use Custom back Button
You can do it as follows in D controller.This is valid only if A controller is the rootViewController of navigationController.If you are keeping track of your A controller than you can use the following also
(NSArray *)popToViewController:(UIViewController )viewController animated:(BOOL)animated
}
Change the stack of navigationController
This is useful if you want to navigate to a particular controller.But the back button still displays after getting back to A controller from B,that you might have to see yourself by making some changes.Don't try to change the navigation stack in prepareForSegue
Edited Code for custom back button
If you want the original back Button
You have to use image for that with code as follow