I'm starting to learn programming and I've chosen to use Swift, but I'm having a little trouble with something. I'm trying to do a simple word-counter app, but I don't know how to relate the variables (var) in the AppDelegate to variables in the ViewController.swift (so I can put them into a label).
How do I use a var (which is a string) from the AppDelegate in the ViewController.swift so I can show it in a label? The other problem (though I guess it'll be done in a similar way) is how to import the text written (by the user) in a textfield to the ViewController.swift and back to the AppDelegate.
Thanks in advance
How do I use a var (which is a string) from the AppDelegate in the ViewController.swift so I can show it in a label? The other problem (though I guess it'll be done in a similar way) is how to import the text written (by the user) in a textfield to the ViewController.swift and back to the AppDelegate.
Thanks in advance