I'm not sure what the correct pattern for this situation is, so I'm not really sure what to search for here...
Basically, I want to have my iOS (iPhone) application start with a login page always. From there, I need the rest of the application's ViewControllers to be able to access the login information, and I'm not sure what the best way to do this is...
- Do I create some form of global variable somehow?
- Do I pass in an instance of the class to each ViewController and have a property for each ViewController to hold this login information?
- Do I store some token in the cache/temp/appfolder somehow that each one can read from to get login information?