Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8769001
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T17:13:00+00:00 2026-06-13T17:13:00+00:00

I want my app to work just like the ‘contacts’ app on iOS. When

  • 0

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.

enter image description here

No Matter which cell is pressed, Either “Joseph, Richard, or Shannon”, This view comes up:

enter image description here

enter image description here

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!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T17:13:02+00:00Added an answer on June 13, 2026 at 5:13 pm

    Perhaps you don’t want to use NSUserDefaults…. that’s only used for persistant user information, such as preferences. It’d be better to use Core Data for that sort of thing.

    One idea, since you want to tag the views, is to use the -[UIView setTag:] or UIView.tag property/method on the UITableViewCell during cell dequeueing. Using the UITableView delegate methods, you could detect a tap on the cell, retrieve its tag, and look up the NSUserDefaults, or better, your database.

    The preferred way, is to keep an indexed database, dequeue a cell, and when it’s tapped, navigate to the detail pane using the cell’s index. This is a far more representative programming model, than tagging a view and using NSUserDefaults to pull the data.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have just created a cool app that work with SMS. I would like
I want to make sure, the app will work properly before I warble it.
I want my app (AIR app ported on iOS) to be able to show
I'd like to have something in my app that is just like Twitter but
I want to ship some default data with my app. This data can be
In my app I let users select a username, just like the twitter signup
I want my app to be hw accelerated in ICS, but support of 2.3.3
I want my app to store multiple objects locally for later use. Now, my
I want my app to stop playing video after specific time period (say 30
I want my app to be available for both phones and tablets. The only

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.