2010-08-15 44 views
0

我的问题是,我既是新的iPhone开发,也使用这个HTTPRiot类。我们的目标是拥有一个通用的XML解析器,这个类似乎完成了演示,但我没有找到的是一个准系统实现教程。HTTPRiot和iPhone是否有XML示例?

我没有看到的是在我所创建的类上调用的委托方法。从我所收集到的头必须有一个包含我们委托的标题:

#include <HTTPRiot/HTTPRiot.h> 

,并在实现文件中我有很多的,都应该被称为当我们解析XML功能

- (void)restConnection:(NSURLConnection *)connection didReturnResource:(id)resource object:(id)object 
{ 
NSLog(@"didReturnResource"); 
} 

- (void)restConnection:(NSURLConnection *)connection didReceiveResponse:(NSHTTPURLResponse *)response object:(id)object 
{ 
NSLog(@"didReceiveResponse"); 
} 

- (void)restConnection:(NSURLConnection *)connection didFailWithError:(NSError *)error object:(id)object 
{ 
NSLog(@"didFailWithError - %",[error description]); 
} 

- (void)restConnection:(NSURLConnection *)connection didReceiveError:(NSError *)error response:(NSHTTPURLResponse *)response object:(id)object 
{ 
NSLog(@"didReceiveError - %",[error description]); 
} 

- (void)restConnection:(NSURLConnection *)connection didReceiveParseError:(NSError *)error responseBody:(NSString *)stringBody 
{ 
    NSLog(@"didReceiveParseError - %",[error description]); 
NSLog(@"%",stringBody); 
} 

当我试图初始化类,我没有得到任何这些调用。有人可以给我一个教程,指导你从头到尾使用这个类吗?

谢谢,

利安

编辑的2010年8月19日是更具描述性的。

+0

这里不够详细.... – 2010-08-16 02:03:55

回答