-1

I need help to pass data of type boolean from checkboxes , from one view to the other , like in the image

Image Example

so if user select [True, True , True] should take the user to "Thats Good" viewController , Else "Too Bad" View Controller

Any help is very appreciated

larsks
  • 277,717
  • 41
  • 399
  • 399
  • http://stackoverflow.com/questions/26089152/sending-data-with-segue-with-swift/26089243#26089243 – derdida Jul 26 '16 at 20:56

1 Answers1

1

You can send data using the prepareForSegue method

override func prepareForSegue(segue: UIStoryboardSegue!, sender: AnyObject!) {
if (segue.identifier == "yourSegueIdentifier") {
var svc = segue!.destinationViewController as secondViewController;

svc.toPass = textField.text

}
}

Here is a great video to get you started: video

Nick
  • 1,032
  • 16
  • 27