views:

18

answers:

1

My iPhone app allows for users to type in their usernames and passwords so that they can login. When they login once, their usernames and passwords are saved so that users don't have to type it in again. My problem is, when the app starts again, it immediately starts logging them in, leaving the interface completely black. How would I go about calling my login method AFTER all the UI methods are loaded?

+1  A: 

Implement your login code in the viewDidLoad method of your view controller. Alternatively, do your login in a background thread so that it doesn't freeze the UI which is occuring on the main thread.

pheelicks