在xml延迟加载中解析问题

时间:2012-03-03 10:22:18

标签: iphone ios parsing

我的应用程序中有一个按钮,点击该按钮,调用web服务,并且在服务器上进行时间双重输入。我检查了整个代码无法获得它是如何发生的。在我的方面结果数组显示一个登录控制台。我的代码如下。我从某种原因删除了网址。请给我解决方案。谢谢。

- (无效)btnclicked {

    NSString *url = [NSString stringWithFormat:@"http://www...../parkcarXml.php?uid=%@&latt=%f&long=%f",[[NSUserDefaults standardUserDefaults] valueForKey:@"userId"],lat,longi];
    NSLog(@"url  ==> %@",url);
    networkQueueHome = [[ASINetworkQueue alloc] init];
    [networkQueueHome cancelAllOperations];
    [networkQueueHome setShowAccurateProgress:YES];
    [networkQueueHome setDelegate:self];
    [networkQueueHome setRequestDidFinishSelector:@selector(requestFinished:)];
    [networkQueueHome setRequestDidFailSelector: @selector(requestFailed:)];

    requestHome= [[ASIFormDataRequest alloc] initWithURL:[NSURL URLWithString:url]];
    [requestHome setTimeOutSeconds:120];
    [networkQueueHome addOperation:requestHome];
    [networkQueueHome go];  
}

0 个答案:

没有答案