Using NSUserDefaults to load data depending on which table view cell is pressed
Posted
by
Bad_APPZ
on Stack Overflow
See other posts from Stack Overflow
or by Bad_APPZ
Published on 2012-11-03T04:57:07Z
Indexed on
2012/11/03
5:00 UTC
Read the original article
Hit count: 237
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!
© Stack Overflow or respective owner