Is there basic data on the iPhone? Or how would you save data on an iPhone?

Suppose I am making an application that allows users to take short notes and record things. Is there any basic data on the iPhone OS too? Or how else would you save this data to your iPhone?

+3
source share
7 answers

No. Core Data and Cocoa Bindings, as well as Objective-C's Garbage Collection is missing on the iPhone.

Update. As mentioned below, basic data is available with iPhone OS 3.0.

+7
source

iPhone OS 3.0, Apple preview movie Core Data 3.0.

+5

SQLite , . SQL , .

NSCoding NSArchiver.

+4

, OmniDataObjects, Core Data-esque iPhone.

+3

, SQLite. . NSDictionary NSArray -writeToFile ( xml) .

Marco

+1

sqlite, plist XML iphone ( ).

// , plist xml.

- , sqlite.

if you continue working with sqlite, then I suggest you use FMDB - cocoa wrapper for sqlite, this saves you tons of duplicate code

+1
source

Saving data on the iPhone is not much different - write the data to a file (for example, plist). As far as I know, there is no Core Core data.

-1
source

Source: https://habr.com/ru/post/1704021/


All Articles