0
- (void)viewDidLoad{

    [super viewDidLoad];
    RKClient *client = [[RKClient alloc] initWithBaseURLString:wwww.example.org];
    [RKClient setSharedClient:client];
    [[RKClient sharedClient] get:\components.xml delegate:self];
}

- (void)request:(RKRequest*)request didLoadResponse:(RKResponse*)response{  
    NSLog(@"response %@",response.bodyAsString);
}

restkit からの Xml 解析を使用しています。しかし、応答はnullを示しています。restkit を使用した xml パーサーを知っている人は、助けてください。

4

1 に答える 1

0

ここにあなたが参照できるリンクがあります

http://mobile.tutsplus.com/tutorials/iphone/restkit_ios-sdk/
https://github.com/RestKit/RestKit/wiki/Object-mapping

于 2012-09-29T06:15:14.140 に答える