mirror of
https://github.com/zhigang1992/RestKit.git
synced 2026-04-24 04:46:01 +08:00
Manually apply fixes from zorn to fix the RKTwitter example's mapping when using Twitter's JSON feed. Closes #606.
This commit is contained in:
@@ -47,12 +47,12 @@
|
||||
// Wed Sep 29 15:31:08 +0000 2010
|
||||
[RKObjectMapping addDefaultDateFormatterForString:@"E MMM d HH:mm:ss Z y" inTimeZone:nil];
|
||||
|
||||
// Register our mappings with the provider using a resource path pattern
|
||||
statusMapping.rootKeyPath = @"statuses.status";
|
||||
[objectManager.mappingProvider setObjectMapping:statusMapping forResourcePathPattern:@"/status/user_timeline/:username"];
|
||||
// Uncomment these lines to use XML, comment it to use JSON
|
||||
// objectManager.acceptMIMEType = RKMIMETypeXML;
|
||||
// statusMapping.rootKeyPath = @"statuses.status";
|
||||
|
||||
// Uncomment this to use XML, comment it to use JSON
|
||||
// objectManager.acceptMIMEType = RKMIMETypeXML;
|
||||
// Register our mappings with the provider using a resource path pattern
|
||||
[objectManager.mappingProvider setObjectMapping:statusMapping forResourcePathPattern:@"/status/user_timeline/:username"];
|
||||
|
||||
// Create Window and View Controllers
|
||||
RKTwitterViewController* viewController = [[[RKTwitterViewController alloc] initWithNibName:nil bundle:nil] autorelease];
|
||||
|
||||
Reference in New Issue
Block a user