所以我有这段代码:
- (void) connectSelector:(NSArray *)args {
NSError* error;
NSString* data = [NSString stringWithContentsOfURL:[NSURL URLWithString:[args objectAtIndex:0]] encoding:NSASCIIStringEncoding error:&error];
NSLog(@"%@", data);
NSDictionary* dictionary = [[NSDictionary alloc] initWithObjects:[NSArray arrayWithObjects:@"connector", @"data", @"error", nil] forKeys:[NSArray arrayWithObjects:self, data, error, nil]];
[[args objectAtIndex:1] performSelector:@selector(dataDownloaderDidDownloadData:) withObject:dictionary];
}
字典中的值 NSArray 正在失去其“自我”价值。为什么会这样?
提前致谢!