iPhone:如何使用Core Data(在已经创建的程序中)? [英] iPhone: how to use Core Data (in an already created program)?

查看:206
本文介绍了iPhone:如何使用Core Data(在已经创建的程序中)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在已建立的程式中使用Core Data?



事实: b $ b


  • 我不知道如何使用存储在核心数据库中的信息。

  • 我不知道如何添加新的

  • 我知道如何创建核心数据文件并将实体和属性放入其中。

  • 我创建了此程序,

  • 我知道SQL(如果有帮助)。

  • 现在有2个属性

    $ 1

    请帮助我(发布指向教程的链接)!



    (我是iOS编程的新手。)

    解决方案

    来自 iOS核心数据指南和常规mac 核心数据编程指南



    还有一些 良好的教程 文章 about 学习核心数据



    如果你已经知道SQL并想使用更多的数据库中心功能,您可能需要阅读本文(和< a href =http://inessential.com/2010/02/26/on_switching_away_from_core_data =nofollow> this one ),并决定SQLite是否会更好的适合。



    不要害怕做一些一次性的项目来熟悉核心数据,它会让你的生活更加快乐,因为你学习。


    How do I use Core Data (in an already created program)?

    Facts:

    • I don't know how I use the information stored in a core data database.
    • I don't know how to add new information to a core data database.
    • i know how to create the core data file and put entity and attributes in it
    • I created this programm and now whanna use a local database in it!
    • I know SQL (if it helps).
    • There shoul'd be 2 attributes (name and score) in 1 entity (highscores)

    Please help me (post a link to a tutorial or so)!

    (I am new to iOS programming.)

    解决方案

    The meat of you knowledge should come from the iOS core data guide and the regular mac core data programming guide.

    There are also some good tutorial articles about learning core data out there as well.

    If you already know SQL and want to use more database centric features, you may want to read this article (and this one) as well and decide if SQLite would be a better fit.

    Don't be afraid to do a few throwaway projects to get familiar with core data, it will make your life much happier as you learn.

    这篇关于iPhone:如何使用Core Data(在已经创建的程序中)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆