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 8748705
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T12:34:18+00:00 2026-06-13T12:34:18+00:00

I have a simple questionnaire app where I need to save the history of

  • 0

I have a simple questionnaire app where I need to save the history of surveys displayed by the date when surveys has been taken. It has to work like this – in tableview user first can see date, after tapping the date he can see answers of the survey. I’ll use NSUserDefaults for history. Any suggestions?

  • 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-13T12:34:18+00:00Added an answer on June 13, 2026 at 12:34 pm

    If you are going to use NSUserDefaults, you could keep all your surveys in NSMutableDictionary and your key would be just NSDate strings.

    Then to get sorted array of surveys you can use the following code:

    NSArray *sortedKeys = [[surveysTaken allKeys] sortedArrayUsingSelector: @selector(compare:)];
    NSMutableArray *sortedValues = [NSMutableArray array];
    for (NSString *key in sortedKeys)
        [sortedValues addObject: [surveysTaken objectForKey: key]];
    

    As a result you will get sortedValues array.

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

Sidebar

Related Questions

I have a simple questionnaire app that uses tableview. When users answers questions they
I'd like to build a simple survey/questionnaire app in Ruby on Rails and wanted
Have simple Order - Item app. No cart. Need help with joined scopes for
At work, we have asked our clients to fill out a questionnaire; the format
Have simple C# console app which imports text data into SQL. It takes around
I have simple ASP.NET MVC action like this : public ActionResult Edit(EditPostViewModel data) {
I have simple WPF app with two textboxes and ReactiveUI. I try to lookup
I have a very simple HTML form on a PHP page for a questionnaire.
I have a simple questionnaire system which shows a random number of questions to
I have a simple relationship Questionnaire has_many Answers I have multiple questionnaires. I want

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.