开发者

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


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜