我必须连接到通过用户名和密码JSON的web服务,但我还没有发现任何样本代码或教程中,我怎么能做到这一点....JSON通过HTTP iPhone
-(void)loadData
{
self.responseData = [NSMutableData data];
NSURLRequest *request = [NSURLRequest requestWithURL:[NSURL URLWithString:@"http://url.com/vtsp/rest/"]];
[[NSURLConnection alloc] initWithRequest:request delegate:self];
}
你可以看看http://restkit.org/ – marcus
意味着你的性反应是JSON格式? –
一旦你得到答案,请关闭你的问题。 – Sarah