Search code examples
objective-cxcodensuserdefaults

Using NSUserdefaults and creating unique people for gallery


I'm trying to create gallery of people, to add users to the gallery I would click a "+" a modal pop-over will appear:

2 UITextfield
4 UI Image Views - On press will show Image picker

I would like to know how I can get the UITextfield values and the first UIImage showing on the first screen - whilst also creating a unique person each time?

I've already tried NSUserdefaults but am struggling with creating the unique person and adding it to the first page. How can I append a new person each time to the first page?

Please only provide Xcode solutions/ideas.


Solution

  • Did not quite understand your need. But you can store information using a dictionary plist, or if you are storing many users, a database of core data or sqlite.

    Or if you want this base is in the cloud, you can use icloud, parse or dropbox database.

    http://iosdevelopertips.com/data-file-management/read-and-write-dictionaries-arrays-strings-as-property-lists.html