Iphone application - Log in View

Discussion in 'iOS Apps' started by jjgraz, Mar 1, 2009.

  1. jjgraz macrumors regular

    jjgraz

    Joined:
    Feb 13, 2009
    #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.
     
  2. return7 macrumors 6502

    Joined:
    Oct 8, 2008
    #2
    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.
     
  3. jjgraz thread starter macrumors regular

    jjgraz

    Joined:
    Feb 13, 2009
    #3
    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?
     
  4. jjgraz thread starter macrumors regular

    jjgraz

    Joined:
    Feb 13, 2009
    #5
    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.
     

Share This Page