EurekaCommunity / ViewRow

ViewRow is a Eureka row that allows you to display any UIView (or UIView sunclass) within a Eureka row. Views can be created in code or loaded from nib files.
MIT License
77 stars 16 forks source link

Displaying results from segue in table #22

Closed tdimbero closed 4 years ago

tdimbero commented 4 years ago

I am executing a segue to get a string from a separate UIView. In the unwind segment I get the answer correctly. After the Unwind how can I display the answer in the title of the button.

<<< ButtonRow("Add") { $0.title = $0.tag $0.presentationMode = .segueName(segueName: "AddSomething", onDismiss: nil) } }

@IBAction func unwindAddName(sender: UIStoryboardSegue) {
         if let sourceViewControler = sender.source as? AddViewController {
            answer = sourceViewControler.answer
            print("I got my answer back ",answer)
    }
}