How to use Sample Code of “Core Data with iCloud” session 227 in WWDC 2012?

可紊 提交于 2019-12-01 01:31:04
    5

    I also had issues with trying to implement the sample iCloud code from the Apple WWDC 2012. I opened a ticket with Apple Developer Support and here was their reply on November 15, 2012.

    Several developers have been having issues adopting iCloud and Core Data with that sample from WWDC. However, I have an updated SharedCoreData sample (improved from WWDC), that I think you should use instead. The CoreDataController object remains, but has been cleaned up and improved. I suggest running that sample first, see if it syncs properly between iOS devices. This is important to run first before proceeding to make changes. This way you get a good baseline. Once you have verified it works, proceed to adopt it's CoreDataController into your app.

    He mentions that the CoreDataController class has changed. The AppDelegate has also changed. New methods have been added and the code is cleaner now. I've almost got my iCloud working on my app but still having an issue with the initial file upload. Trying to fix that now. Running the updated SharedCoreData app with untouched code works perfectly! So it's a nice place to start.

    I don't know how you would get this new code other than opening a ticket with Apple Developer Support (which is 50 bucks a shot). The new project (still named SharedCoreData) is only 1 MB in size. I'd be willing to send it to you via email if you wish.

    I'll post an update here when I figure out the initial file upload solution for my app.

    • Thanks so much, You never know how I thank you. I have been waiting getting answer for few days. Thanks very much for your response. – Bright Lee Dec 11 '12 at 5:12
    • my previous code which is using core data with iCloud on iOS 5 is working pretty good. but I decided not to use it because it rarely cause critical problem. That's why I want to use new code with iOS6. – Bright Lee Dec 11 '12 at 5:13
    • Thanks very much for your kindness. my email address is benevbright@gmail.com. If sending your current code is also OK, I would like to get your code to learn. Thanks very much anyway! God bless you, Merry Christmas! – Bright Lee Dec 11 '12 at 5:15
    • @BrightLee Just sent you the file. I'm still researching the integration of iCloud into my app so I don't have a final solution yet. – JimVision Dec 13 '12 at 16:21
    • To Everyone: My apologies, after checking with Apple, I am not allowed to share the updated SharedCoreData code. Apple stated the following, "Although I appreciate your willingness to share knowledge with your fellow developers, please do not distribute this sample code to others as it is prerelease and has not been officially published. Thanks for your understanding." I have not check lately so I'm wondering if they have already released the updated version. – JimVision Jan 25 '13 at 15:19

    Your Answer

    By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

    Not the answer you're looking for? Browse other questions tagged or ask your own question.

    标签
    易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
    该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!