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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T09:26:46+00:00 2026-05-20T09:26:46+00:00

I am developing an iPad game that lets you buy new game levels (that

  • 0

I am developing an iPad game that lets you buy new game levels (that basically are a set of pictures associated with some title and description) with the StoreKit. Those sets of pictures are stored in the cloud. The StoreKit programming guide doesn’t really give tips on how to fetch content from the server, and I’m stuck in figuring out what would be a good design practice here.
There are a couple of implementations that come to my mind:

  1. Fetching the whole content as a compressed archive and uncompressing the archive on the client, following a known convention about directories and files, and checking for the existence of a directory to know what additional levels the user bought.
  2. Fetching the content one picture at a time and then serialize and store the set with NSKeyedArchiver in a file that has the same name of the Product ID. To check if the user bought a particular set I would then check the existence of a file named like the Product ID.
  3. Same as 2, but using the Core Data framework instead.

I think that the Core Data solution has the advantage that the images data won’t be loaded until it is really requested (since the memory constraints on the iPad are pretty low). Memory optimization might be important since I need to display thumbnails of those pictures without the need to load in memory the whole full-sized set. The compressed-archive solution also has this advantage.

What practice would you suggest?

  • 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-20T09:26:47+00:00Added an answer on May 20, 2026 at 9:26 am

    You are conflating two separate questions here: how the fetch the content and how to store it on the device.

    To fetch the content, the best bet probably is to fetch an archive of some sort and unarchive it on the device. This archive could be a zip file, an XML file with the images base64-encoded as values of some nodes, or a custom binary file format, that doesn’t really matter. I would avoid downloading each individual resource separately, as that can easily leave you with a situation where the data is only partially downloaded.

    Once you have the archive, you’ll need to uncompress it and store the contents on the device. Whether you store it as files in a directory structure, as a serialized NSDictionary in a file, or as objects saved in Core Data is up to you. Both the directory structure and the Core Data solutions have the advantage that you can easily load only the individual resources as needed. Either one is a valid choice, use whichever works best for your situation or whichever you’re more comfortable with.

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

Sidebar

Related Questions

I am developing an iPad game that uses cocos2d and requires a virtual joystick.
I am developing an iPad application which is basically a big drawing canvas with
I'm developing an iPad application. I have been provided with a PNG image that
I am developing an ipad app with openGL. In my app basically I am
this is my first ever question. I am developing a iPad app that allows
develop android apps that should support iphone,ipad,android.is there any way for developing this kind
I'm developing an iPad app that allows a user to select widgets to appear
When developing a new web based application which version of html should you aim
When developing an application that sends out notification email messages, what are the best
I am developing an iPad application in which I need a table view (

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.