开发者

core data - how to use?

I want to build an app that uses core data, but all the tutorials I found in the net didn't show if I can store a data开发者_如何学运维 without using the code it self.

Is there anyway to do it?

For example, i want to make a row of name and put there couple of names.


I've just read the book "Pro Core Data for iOS" from APRESS it covers Core Data very well. I recommend this by heart.


You can try Core Data Editor. But it's not cheap.


You can use SQLite directly without Core Data; there you'd have your SQLs in your own hands. Your can use Core Data and debug SQLs issued by the framework, of course if using SQLite as the store.

Core Data works also with binary and XML format (the latter not available on iPhone): passing following argument to the application:

-com.apple.CoreData.SQLDebug 1

Other than that, you could probably use SQL to access Core Data SQLite store, since it is all SQL, but it is not recommended.


Unfortunately Core Data is all code. However, CoreData is an api that helps you create, save, load data from the database, it uses SQLLite in an easier fashion.

If you need very complex data storage then by all means use SQLLite directly. But, if it's just simple data storage of names, emails, booleans, etc, then i would recommend CoreData.

I'll give you a link that it helped me greatly when i wanted to integrate CoreData for my app.

CoreData Tutorial

Good Luck.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜