uiviewcontroller - Passing value from one ViewController to another in Storyboard in SWIFT Language -


i start project in swift language. apps done. single viewcontroller logics done. need communicate each other viewcontroller.

i want pass value 1 viewcontroller viewcontroller. i'm using storyboard. want pass value using prepareseague function objective-c has. there way without using delegate-way.

in first view controller handle prepareforsegue method , provide additional values second view controller, like:

override func prepareforsegue(segue: uistoryboardsegue!, sender: anyobject!) {     if segue.identifier == "someidentifier" {         let vc = segue.destinationviewcontroller mysecondviewcontroller         // vc.someproperty = somevalue     } } 

Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -