DEPRECATED Oct 21, 2015 - Mark Murray
The contents of the lab have been combined with SlapChat Add. The "space" between the labs was deemed too incremental to publish both. This repository is no longer active.
- In your .xcdatamodeld make a new entity called Message. It should have two attributes: content (string) and createdAt (date)
- Generate the NSManagedObject subclass. Editor > Create NSManagedObject Subclass, Select "slapchat", select "message".
- Set the reuse id and make it a basic cell.
- Add a property to your UITableViewController of type
NSArray
that will be an NSArray ofMessage
objects. - Put in a few test messages into the context.
- Display the contents of each message in the
textLabel.text
of each cell.
- Add a button that resorts the messages in the array so descending by the createdAt property.
View DEPRECATED Oct 21, 2015 - Mark Murray The contents of the lab have been combined with SlapChat Add. The "space" between the labs was deemed too incremental to publish both. This repository is no longer active. on Learn.co and start learning to code for free.