I have two view controllers in my project that one of them has a label with text - I want to have first view controller labeltext in the second view controller
here is first view controller codes :
@IBOutlet weak var customKind: UILabel!
override func viewDidLoad() {
super.viewDidLoad()
customKind.text = "Custom"
}
and here is my second view controller codes :
@IBOutlet weak var customType: UILabel!
override func viewDidLoad() {
super.viewDidLoad()
customType.text = firstLevelViewController().customKind.text
}
I can't access this information in my second view controller please help me to do that
**Remember That These View Controller Are not Connected to each Other And I want to access their Information Without Connecting **