nickkjordan / wruw-iphone-app

iPhone app for WRUW 91.1 Cleveland, OH http://www.wruw.org/
1 stars 2 forks source link

Set up Data Saving in the Form of Song Favorites #6

Closed nickkjordan closed 10 years ago

nickkjordan commented 10 years ago

Save favorited songs as data. Use the ArchiveTableVC to display all the favorited songs, sorted by date added.

nickkjordan commented 10 years ago

Can't write objects to a file within an array using writeToFile

http://stackoverflow.com/questions/1864296/problem-with-writetofile-with-array-of-nsdictionary-objects

nickkjordan commented 10 years ago

Fix using NSCoding to archive objects

http://sam.roon.io/archiving-objective-c-objects-with-nscoding

nickkjordan commented 10 years ago

[[NSKeyedArchiver archivedDataWithRootObject:myLibrary] writeToFile:filePath atomically:YES].

nickkjordan commented 10 years ago

Appending data to an existing plist:

http://stackoverflow.com/questions/8884215/appending-data-to-plist-iphone

nickkjordan commented 10 years ago

Refresh the tableView when clicking on the tabBar:

http://stackoverflow.com/a/2147158