VanessaMartinez
VanessaMartinez

Reputation: 139

RestKit: Property 'mapper' not found on object of type 'RKObjectManager *'

Using the new Xcode and RestKit I am facing a problem with the mapper. The error is: Property 'mapper' not found on object of type 'RKObjectManager *'

// Initialize RestKit
NSString* baseUrl = @"http:////172.13.12.17:3000";
RKObjectManager* objectManager = [RKObjectManager objectManagerWithBaseURL:baseUrl];

RKObjectMapper* mapper = objectManager.mapper;

Does someone knows how I could fix this? Thx, Vanessa

Upvotes: 0

Views: 873

Answers (1)

jeffarena
jeffarena

Reputation: 501

On the latest RestKit master branch, object mapping has been completely reworked, such that the mapper property no longer exists on the RKObjectManager class. You're probably running into issues following an old code example for object mapping that was written prior to the major overhaul of the mapping subsystem.

Upvotes: 2

Related Questions