Display different iphone views depending on logged in status
        Posted  
        
            by user330936
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by user330936
        
        
        
        Published on 2010-05-02T19:41:46Z
        Indexed on 
            2010/05/02
            19:48 UTC
        
        
        Read the original article
        Hit count: 184
        
iphone
|objective-c
I want to display a login view to my users if they are not logged in and the main view if they are.
In my header file I define a variable to hold the logged in status
#define loggedIn 0
I figure I should then reference this in the initWithNibName method and then decide which nib to load.
Is the right way of doing it?
If so can someone help me out with the exact code?
Thanks for any help
© Stack Overflow or respective owner