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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T21:50:24+00:00 2026-05-19T21:50:24+00:00

my goals (this is for training purpose): User can create(50%DONE)/edit/delete/view a created Quiz! The

  • 0

my goals (this is for training purpose):

  1. User can create(50%DONE)/edit/delete/view a created Quiz!
  2. The Quiz has a name, desc, type, … (DONE) and an array with objects like this:@”Question:Answer”
  3. user should be able to export/import one/more quiz(s) via email attachments!
    however so far I have came:

the quiz class:
.h

   @interface quiz : NSObject {
        NSString *title, *description, *type ....;
        NSArray *words;

    }

    @property(nonatomic,retain)NSString *title, *description, *type ... ;
    @property(nonatomic,retain)NSArray *words;
    @end

I give all the info it needs:

quiz *newquiz = [[quiz alloc] init];
        newquiz.title = exName.text;
        newquiz.description = myDesc;
        newquiz.type = myType;
            newquiz.array = wordsArray;
        ....

ok now I have an NSObject.
Now I dont know what to do?
Can somebody explain me in some easy and clean steps that I should do to achieve my goals?

my thoughts about what to do next:

  1. I need to store the NSobject locally. maybe writeToFile:@”filename.obj”. I have no idea how to implement this!
  • 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-05-19T21:50:24+00:00Added an answer on May 19, 2026 at 9:50 pm

    Not really sure what your question is an there are like 10 questions in your snippet there. But the only thing that might be hard is the importing/exporting stuff, so ill help with that.

    Depends on the system you’re using. In the jailbroken community, you can access the files outside of your sandbox… in the oppressed world of stock iphones, you can’t.

    METHOD 1:
    Now, lets assume you are in the stock market, as this actually seems to be a more fun solution. I would go with a URL scheme format since you want to pass the quiz around via emails or w/e.

    what this is means is that you will pass around a url that will launch your app

    The url would look something like this:

    `quizzer://question1/question2/question3
    

    or something similar, you can basically do it any way you want

    you need to add a key into your info.plist to describe the scheme, so this would go into it

    <key>CFBundleURLTypes</key>
        <array>
            <dict>
                <key>CFBundleURLSchemes</key>
                <array>
                    <string>quizzer</string>
                </array>
            </dict>
        </array>
    

    Note, this can all be done in xcode, I don’t use xcode anymore though… soo, yea

    Ok, now whenever someone clicks on a URL that is formatted like above, your app will be launched and the app delegate will receive the message.

    next, you need to implement this app delegate method

    - (BOOL)application:(UIApplication *)application handleOpenURL:(NSURL *)url 
    {
      // Do something with the url here
    }
    

    there, now you can build w/e you want from the URL

    METHOD 2:
    K, now we can assume you’re in the jailbroken market. The easiest way i see is using a NSDictionary with the functions of

    [NSDictionary dictionaryWithContentsOfFile:(NSString *)path];
    

    and

    [dictionary writeToFile:(NSString *)path atomically:(BOOL)atomically];
    

    Note, the reason jailbroken is part of this is if you want to import the quiz from an email attachment. You would have to know the location of the attachment, which would probably be outside your sandbox, and then grab the info. This is something you cant do if you’re not jailbroken.

    If you have some other method of getting the file into your app’s directory (server downloads or something similar), then these functions will be perfect for the task regardless of being jailbroken or not.

    That would be for the importing exporting… i think that was the main part of your question.

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

Sidebar

Related Questions

When I try to run this in one of my controllers: goal = @user.goals.detect{|g|
I have this HTML <div class=box> <a href=#goals> | <a href=#rules> | <a href=#controls>
It appears that that you can generate a standard documentation website (like this one
I'll try to give this as generically as I can so it's reusable. I
I created this profile for deploying artifacts on the server via SCP. I know
I've been working on this for days and I can't find a proper solution,
I asked this question on programmers , but it has been crickets for a
Why does this return an array instead of an object and how can I
I get this error in my pom.xml , and I can't understand what I
Im firing this question at you guys since the project-page itself has not a

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.