bobbyali / PhotoNote

An iOS app for annotating photos, done during Thinkful iOS bootcamp.
0 stars 0 forks source link

Saving is very slow #5

Closed bobbyali closed 9 years ago

bobbyali commented 9 years ago

I'm saving my PhotoNote objects to the local file system (essentially a title, original photo and annotated photo), but it's making the app very slow (esp when creating a new PhotoNote, because it forces the whole collection to save).

Is there a way to append to the NSUserDefaults dictionaries? At the moment I'm doing defaults.setObject which is recreating the whole dictionary set.

bobbyali commented 9 years ago

Refactored code to remove unnecessary image saves and just rewrite the "title" array.