What Is the best approach for this situation

khaledgarbaya's Avatar

khaledgarbaya

16 Apr, 2013 11:21 AM

Hello I have a Facebook application :
I need to check if the user autorized the app or not and based on that i set a state on my view.(isloggedin or !isloggedin)
so if the user is loggedin and the user clicks start the app i'll have to switch to another view from homescreen to game screen for instance

My idea is to create a main view and that contains all the screens and switch them based on states of applicatons (switch visibilities or removeChild ...)

Is my approach valid or shall I go for another one

thanks,

  1. Support Staff 1 Posted by creynders on 16 Apr, 2013 05:59 PM

    creynders's Avatar

    It definitely sounds like a valid approach, but everything always depends on what exactly you want to do of course.

  2. Support Staff 2 Posted by creynders on 16 May, 2013 09:33 AM

    creynders's Avatar

    I'm closing this for now, if you have any more questions let us know!

  3. creynders closed this discussion on 16 May, 2013 09:33 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac