I am making an app that the user could add many accounts and view it in the UITableView and I am holding the name via NSUserDefaults and once the name is clicked in the UITableView it will open a different page that has many data fields to fill which is DONE.
For example when the user click on John or other name. The user could see his own data. My problem is that how could I show for every user his own data? Also could I make this via NSUserDefaults ?
It smiler to contacts tab in the iPhone. I hope I could explain my problem.
My source code I hope it helps Download Link
This answer hasn’t common answer without knowing your architecture and data which you show in table. Generally database greatly solve this problem – you store all data in db and fetch by predicate only needed data –
But database is being used for large amount of data, and if you don’t want to use db or have static data to display then look at plists. You can create plist with nodes
Then read this file, and fetch John’s object like this:
Hope, it will be helpful for you