我根据用户点击任意行加载多张图片 - >部分 - >图像
我正在通过NSxmlparser解析 现在点是我只能加载详细信息部分,如果我加载的所有图像都太费时间了 是否有任何方式可以让我去剖面视图(即使加载1张图像),然后继续加载休息图像
这是我的解析器代码
if([elementName isEqualToString:@"result"]) {
// NSLog(@" ADD f ELEMENT");
[appDelegate.aGallry addObject:aGall];
NSLog(@"Processing new Value: %@", currentElementValue);
//[aGall release];
NSUserDefaults *img = [NSUserDefaults standardUserDefaults];
[img setObject:currentElementValue forKey:@"keyToimg"];
//aDetail= nil;
NSLog(@"table count is %i",[appDelegate.aGallry count]);
}
这是检索
NSUserDefaults *imgg = [NSUserDefaults standardUserDefaults];
NSString *myimg= [imgg stringForKey:@"keyToimg"];
//XMLAppDelegate* appDelegate=(XMLAppDelegate*)[UIApplication sharedApplication].delegate;
//NSString *myimg=aGall.images;
NSLog(@"RES image sssssssss is = %@",myimg);
NSString *trimmedString1 = [myimg stringByTrimmingCharactersInSet:
[NSCharacterSet whitespaceAndNewlineCharacterSet]];
NSLog(@"trrimming is %@",trimmedString1);
/// puttint them to araay
NSMutableArray *a1 = [[NSMutableArray alloc] init];
[a1 addObjectsFromArray:[trimmedString1 componentsSeparatedByString:@"\n\t"]];
[a1 addObject:trimmedString1];