ios - queries on plist in objective-c -


hi heard plist same database in ios, question hitting in mind can execute dml ddl etc statements on plist, if yes simple example appreciated, if no means, why? m fresher in ios development.

thank you.

the answer "no".

you can use sqlite executing these statements.

property lists plist list of nested key-value pairs can contain common data types strings, numbers, arrays , dictionaries.

pros

  • simple understand.
  • easy work with.

cons

cannot run complex queries on them (at least not easily). have read entire file memory data out of , save entire file modify in it.

sqlite until coredata came along, popular way read , write data in iphone applications. if web developer, ain’t nothing new. pros

  • unlike plists, don’t have load whole database front. makes sqlite more suitable applications lots of data.
  • better plists slicing , dicing data.

cons

steeper learning curve plists. can tedious work with.

core data

its new, exciting, , developers use here on out.

i have not spent enough time coredata summarize it; check out tutorials (below) learn more it.

pros

  • nearly benefits of sqlite lot less hassle (apple lot of dirty work you).

  • as apple’s preferred method has lot more official documentation , sample code (it seems articles , sample code other 2 methods have mysteriously disappeared apple’s website).

cons

  • steeper learning curve plists.
  • killer: works on iphone os >3.0. killer if market consists largely of ipod touch users (who have pay upgrades).

Comments

Popular posts from this blog

java - Oracle EBS .ClassNotFoundException: oracle.apps.fnd.formsClient.FormsLauncher.class ERROR -

c# - how to use buttonedit in devexpress gridcontrol -

nvd3.js - angularjs-nvd3-directives setting color in legend as well as in chart elements -