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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T08:08:08+00:00 2026-05-26T08:08:08+00:00

I have been puzzling about retrofitting my app for iCloud for a few days

  • 0

I have been puzzling about retrofitting my app for iCloud for a few days and hope someone can help. After getting past code signing issues I am not sure I understand the model for incorporating iCloud. I’ll tell you the problem I’m trying to solve first since I’m a big believer in telling people what I’m trying to do before having them try to fix the way I’m doing it 🙂

My app workflow

  1. User browses the store which lists a series of training plans they can download
  2. User picks a plan and downloads it
  3. I pull the training plan from our webserver customized to their needs
  4. I add the filename for the training plan they downloaded to a plist of plans they own
  5. User opens the training plan and sees the day-to-day schedule

I want the user to be able to do this on their iPhone and then open their iPad and see the exact same training plans synced over there.

My problem
I currently save the files to the Documents directory and that works just fine. How do I retrofit this to work with iCloud such that folks without iCloud enabled can continue to use the app but those who do get the added benefit?

My understanding
I’m confused as to whether I still need to save to Documents folder and then save a copy to the iCloud folder OR whether I just write to the iCloud folder from now on.

If it’s the former I believe I just write a copy the Documents folder files to the iCloud area too to push it up but how do I detect a new file in the iCloud folder and copy it back to my Documents folder?

If it’s the latter the files should just exist right?

I’m hoping it’s the latter and that still supports devices without iCloud turned on…

Thanks for any help clarifying.

Adam

  • 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-26T08:08:09+00:00Added an answer on May 26, 2026 at 8:08 am

    The iCloud API is pretty well documented and there is a specific chapter that deals with what you are after:

    Managing the Life Cycle of a Document

    A document goes through a typical life cycle. A document-based
    application is responsible for managing its progress through that
    cycle. As you can see from the following list, most of these
    life-cycle events are initiated by the user:

    1. The user first creates a document.
    2. The user opens an existing document and the application displays it in the document’s view or views.
    3. The user edits the document. A user may ask to put a document in iCloud storage or may request the removal of a document from iCloud storage.
    4. During editing, saving, or other actions, errors or conflicts can happen; the application should learn about these errors and conflicts and either attempt to handle them or inform the user.
    5. The user closes a selected document. The user deletes an existing document. The following sections discuss the procedures a document-based application must complete for these life-cycle operations.

    In essence, you application is responsible for working out whether iCloud is available for a particular user and then confirm that the user wants to store their data in the cloud. Based on that selection you will need to work out how to move their existing data from the documents directory to a cloud URL.

    On other devices that are setup to use iCloud storage, you have the option to discover documents available via a metadata query.

    http://developer.apple.com/library/ios/#documentation/DataManagement/Conceptual/DocumentBasedAppPGiOS/ManageDocumentLifeCycle/ManageDocumentLifeCycle.html#//apple_ref/doc/uid/TP40011149-CH4-SW1

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

Sidebar

Related Questions

Have been learning ASP.NET (using C#) over the past few days. I have made
this one has been puzzling me for a few days now and I feel
I have been puzzling with this for quite a while and can't get it
I have a big question that has been puzzling me for a long time
Have been reading about async and tasks and been attempting to convert the CopyFileEx
Have been getting pretty bald over this situation! I am using MS VS 2010
have been trying couple of hours now to make my iphone app universal. The
The following problem has been puzzling me for a couple of days (nb: this
I am dealing with a puzzling situation here,and need any help I can get
I have been trying to create an iphone app sending telnet command. However what

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.