2012-09-29 57 views
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解析。但是響應顯示爲空。任何人都知道使用restkit的XML解析器,幫助我。使用Restkit的XML解析器

+0

什麼特別的理由使用「RKClient」或者你使用它只是正常的XML解析? – TheTiger

回答