Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

jjgraz

macrumors regular
Original poster
Feb 13, 2009
103
0
Hello,

We have created an application which requires users to log some simple details at their first initial application launch, (name,gender..ect.)....Once they log in and activate, from then on, when opening the application it should just go directly into the app, not this initial set up view..............Does anyone know how to write that into the code? Or any information on how this might be done. I appreciate it very much.
 

return7

macrumors 6502
Oct 8, 2008
486
1
Hello,

We have created an application which requires users to log some simple details at their first initial application launch, (name,gender..ect.)....Once they log in and activate, from then on, when opening the application it should just go directly into the app, not this initial set up view..............Does anyone know how to write that into the code? Or any information on how this might be done. I appreciate it very much.

Several ways to do this. The easiest is probably using NSUserDefaults (application settings) for some data like this. Take a look at the reference for info on how to use it -- it's good stuff. Other ways include using a custom file or a database. Neither of these are as clean or simple for simple info like this, in my opinion.
 

jjgraz

macrumors regular
Original poster
Feb 13, 2009
103
0
Thank you. I'll research into NSUserDefaults. I think it's exactly what I'm after. Is there any useful sample script you have come across or available other than apple developer connection, to your knowledge?
 

jjgraz

macrumors regular
Original poster
Feb 13, 2009
103
0
I was able to create a settings View page on my application (without using the settings bundle), and used NSUserdefaults like we discussed before to remember the entries.....Now then the question becomes. How do i send first time users to this View? I'm thinking one way would be creating an If statement that asks if text fields are default then open this view.....else, open main view. Do you think this is the way to do it? Does anyone have a different idea, or method for doing this. I appreciate it.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.