i want add one-time, mandatory email sign @ beginning of basic app. so, if user has never used app before, send them "sign up" page enter email, hit "submit" , sent home page of app. if user has opened app before, , therefore entered email, should sent straight app's home page.
how can go this?
also, addition, how can store emails have been submitted through app in spreadsheet or like?
you should use nsuserdefault
store status check in appdelegate
's didfinishlaunchingwithoption
status true
in user defaults user have opened app before. if status not true firsttime user.
so, if firsttime set rootviewcontroller
signup
viewcontroller. , set status true
in userdefaults
.
if not first time set rootviewcontroller
homeviewcontroller
.
do stuff in didfinishlaunchingwithoption
method of appdelegate
got called first when app launch.
that`s it.