在部署我的应用程序时,我收到错误消息:“线程 1:程序收到信号:”EXC_BAD_ACCESS”。
我的代码如下:
-(NSDictionary *)syncWithList:(NSInteger)listID
{
NSString *urlit = [NSString stringWithFormat:@"http://0.0.0.0:3000/lists/%@/syncList.json?auth_token=%@",@"xxxxxxxxxxx",listID];
// **Here I got the error message: "Thread 1:Program received signal: "EXC_BAD_ACCESS"**
NSLog(@"url: %@",urlit);
NSURL *freequestionurl = [NSURL URLWithString:urlit];
ASIHTTPRequest *back = [ASIHTTPRequest requestWithURL:freequestionurl];
[back startSynchronous];
self.listData = [[back responseString] objectFromJSONString];
NSLog(@"%@",listData);
NSDictionary *dicPost = [listData objectAtIndex:0];
return dicPost;
}
非常感谢!!!!