Using NSUserDefaults to load data depending on which table view cell is pressed
- by Bad_APPZ
I want my app to work just like the 'contacts' app on iOS. When a user selects a certain TableViewCell, i want to load certain data.
No Matter which cell is pressed, Either "Joseph, Richard, or Shannon", This view comes up:
Both of the views look the exact same, but they just display different information. So i guess my question is: How can I programmatically set a key @"cell1" @"cell2", etc... for each cell using NSUserDefaults? But here is the catch, I dont know how many cells will be added, so i cant hard code this, How can I create a key for each table view cell for how ever many is added? Thanks for the help!