ios - Conditional start of App / View -


(first of, let me apologize if trivial question. i'm starting out ios , objective-c)

i'm working on ios 6 app requires verified user account in order work. registration two-phased: user first has register / hers name , phone number, app contact backend service send user verification code sms. user has proceed entering code app. when that's done user can start using app.

my question this: registration only-once process, best way design flow in regard views? current solution based on "splash view" determines user in in registration process (not created, not verified or done) , loads correct view. feel bit cumbersome i'm creating view i'm dismissing after.

edit: follow-up question: if current solution viable, method best place place logic? of it's residing in viewdidload.

you can move in way.

make root view controller splash screen. @ root view controller, check whether app running first time or n-th time (after successful registration). if app running first time, navigate user registration page , if user had registered successfully, navigate user home screen(or desired screen).


to check, whether app running first time or not, can use nsuserdefault.


Comments

Popular posts from this blog

How to mention the localhost in android -

php - Calling a template part from a post -

c# - String.format() DateTime With Arabic culture -