Resolved [Help!] Passing String Data Across Views in Xcode 4.2.1 (Storyboarding)

Discussion in 'iOS Programming' started by Terenc3, Mar 17, 2012.

  1. Terenc3, Mar 17, 2012
    Last edited: Mar 19, 2012

    Terenc3 macrumors member

    Joined:
    Jul 15, 2010
    #1
    I am trying to create an application form app. Basically, there will be a view (Summary) that will draw String Datas from 2 different views (Login and Fill-up Form) and summarise them in the Summary view.

    ----

    The flow is:
    User -- (Login: Userid) > Menu Screen [Select Application Form] > User Fill-up Application Form via Textfields then select done > Summary View.

    This summary screen need to draw the info from Login View (UserID) and all the info from Fill-up Form View (All Text Fields); so that it could display all information for checking.

    ----

    Anybody could give me a guideline on how to do this? I have been trying for a number of days but I just can't get it. =(

    A tutorial was found, but it is not for storyboarding, hence I tried and it didn't work..

    Thanks in advance!!
     
  2. chown33 macrumors 604

    Joined:
    Aug 9, 2009
    #2
    One way is to use NSUserDefaults to store the data in one view, then get the data from NSUserDefaults in another view. This is not the only way. It's not even the best way. It's just one simple way, and is suitably simple for an equally simple use of storyboards.

    See these articles:
    http://stackoverflow.com/questions/8142011/how-to-save-user-login-data-using-storyboards-in-ios5

    http://stackoverflow.com/questions/...utes-before-its-conditional-variables-are-set

    Google search terms:
    ios storyboard userdefaults
    ios storyboard nsuserdefaults
     
  3. Terenc3 thread starter macrumors member

    Joined:
    Jul 15, 2010
    #3
    Thanks! Will see thru that and try understanding it. =) :D
     

Share This Page