mirror of
https://github.com/zhigang1992/RestKit.git
synced 2026-04-12 10:36:52 +08:00
Implementation of Object Mapping 2.0 design:
* Removed RestKit from inheritance hierarchy * Mappings are implemented as concrete classes * Mapper is much more flexible & powerful * Much more robust error handling * Serialization is reimplemented as an object mapping operation * Added ability to serialize to JSON natively * Reworked Core Data integration * Simplified the codebase substantially
This commit is contained in:
@@ -17,7 +17,7 @@
|
||||
|
||||
- (id)initWithTopicID:(NSString*)topicID {
|
||||
if (self = [super initWithStyle:UITableViewStylePlain]) {
|
||||
_topic = [[DBTopic objectWithPrimaryKeyValue:topicID] retain];
|
||||
_topic = [[DBTopic findFirstByAttribute:@"topicID" withValue:topicID] retain];
|
||||
|
||||
self.title = @"Posts";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user