unwind-segue

New Data Not Updating after Unwind Segue Performed

北慕城南 提交于 2020-01-07 04:44:11
问题 I'm relatively new to Swift and am stumbling on this problem that is likely very simple to fix, I just can't figure it out and keep hitting a brick wall. I'm making an app where a user taps an image in a collection view controller and it performs an unwind segue back to the main view controller and updates a uiimageview with the image that the user selected. I got the unwind segue to work but the problem is that the uiimageview is always one image behind (i.e. I select image A, unwind segue

Having problems with Xcode 8.1 and unwind segues

别说谁变了你拦得住时间么 提交于 2020-01-03 16:55:53
问题 I can't get unwind segue to work with the latest Xcode 8.1 GM. I'm just wondering if I'm the only one, or someone else is experiencing the same. I have set up the view-controllers as before, it worked in Xcode 8.0, but now I'm having no luck. Tried to clean and so on, but nothing helps. I would like someone else could test it as well before I file a radar... The view controller that first instantiated the view controller is having the following code: @IBAction func

Having problems with Xcode 8.1 and unwind segues

十年热恋 提交于 2020-01-03 16:54:29
问题 I can't get unwind segue to work with the latest Xcode 8.1 GM. I'm just wondering if I'm the only one, or someone else is experiencing the same. I have set up the view-controllers as before, it worked in Xcode 8.0, but now I'm having no luck. Tried to clean and so on, but nothing helps. I would like someone else could test it as well before I file a radar... The view controller that first instantiated the view controller is having the following code: @IBAction func

Custom Unwind Segue for iOS 8 and iOS 9

僤鯓⒐⒋嵵緔 提交于 2020-01-01 03:33:10
问题 My question is, how do I get the following custom unwind segue to work on a device with a version prior to iOS 9 as well as on a device running iOS 9? I have a Custom Segue showing a view controller, and then have a corresponding Custom Unwind Segue. This code has worked fine in iOS 8, and is implemented by creating subclasses of UIStoryboardSegue and implementing the perform method. Then I override the following method in my custom Navigation Controller: - (UIStoryboardSegue *)

How to pass data in conditional unwind segue?

我只是一个虾纸丫 提交于 2019-12-31 07:34:27
问题 I try to build an rss reader. On the "adding feed" page, if I tap the "add" button, I hope to check if the feed is successfully added. If it is added, then trigger the unwind segue, and back to the main page. If it is not added, stay in the current page. I know I can build an IBAction on the "add" button, and check if the feed is added. However there are two requirements I need to meet in order to add a feed. First, after I parse the url, I need to know if the parse results can generate a

Unwind from a VC to a TabBarController and change tab index

。_饼干妹妹 提交于 2019-12-31 05:40:15
问题 I have the following Storyboard layout: When the app starts it goes to HomeView VC at TabIndex 1. In the HomeView I have a button and I segue to the TestView using performSegue(withIdentifier: "goToStartTest", sender: self) Now I want to go from TestView to HistoryView . The only way I can see to do that right now is to create a segue from TestView to TabBarController . This brings up HomeView with Tab Bar intact. I do this from TestView using performSegue(withIdentifier: "testToRes", sender:

Why does my unwind segue go back too far?

纵饮孤独 提交于 2019-12-31 01:59:10
问题 I'm trying to create the controller architecture for the signup process of my app. Below is an image of the current state: The app starts at a login page the first time and if the user clicks "SignUp", a navigation controller is presented modally via self.presentViewController . The navigation controller then pushes through a view controller which then pushes to a second view controller. On this second view controller the user must first press "Go" to modally navigate to a view controller

Swift 4 Odd unexpected jump back to earlier storyboard

爱⌒轻易说出口 提交于 2019-12-20 06:40:52
问题 I’m very new to Swift and Xcode and I’ve built a simple two storyboard app which has a welcome screen and a button that triggers a seque to second storyboard (for which I have created its own class based on UIVIewController. Second storyboard has a couple of UIPickerView objects a and a couple of UIDatePickerView objects and a button. I have some basic actions under the didSelectRow function. However when I build and run the app I get an odd and seemingly random bevahiour where selecting

unwind segue vs. popViewControllerAnimated

随声附和 提交于 2019-12-20 04:06:22
问题 I have a mapview that is connected to several viewControllers. I needed to implement an 'unwind' from another button (as opposed to just the back button), so I used: self.navigationController?.popViewControllerAnimated(true) My question is: as the above works, should I even bother trying to implement unwind in code using prepareForUnwind and canPerformUnwindSegueAction in the parent view controller + ctrl-drag from the viewController to exit in Storyboard? If so, why? 回答1: Basically if you

How do I use SWRevealViewController with unwind segues?

牧云@^-^@ 提交于 2019-12-19 04:05:58
问题 I have a sequence of views that are pushed on top of each other on a Navigation Controller. I would like to do two things with these views: To open the Rear menu view from all of them; To be able to navigate back the stack using Unwind segues. I found out that if I push view controllers on top of each other using regular push segues then the unwind segue works as expected, but then the self.revealViewController on each view controller is not set and the Menu can't be called using the