当我从其中的表格单元中删除图像时,UITableView
它用于从表格单元和服务器中删除,但是当我们单击以在 egophotoviewer 中打开另一个图像时,删除的图像仍然存在吗?..
这是我的代码。
- (void)showSelectedPhoto:(NSIndexPath *)indexPath {
NSString *passingImageName = [[self.tableDataSource objectAtIndex:indexPath.row]objectForKey:@"fileName"];
NSMutableArray *photoArray = [self getFilteredArray];
NSMutableArray *urlsArray = [[NSMutableArray alloc] init];
for (NSString *string in photoArray) {
NSLog(@"String Values:%@", string);
NSURL *imageUrl = [self getEnlargedImageImageUrl:[self._prefix stringByAppendingString:string]];
NSLog(@"Passing url is:%@", imageUrl);
photo = [[EGOQuickPhoto alloc] initWithImageURL:imageUrl name:string];
[urlsArray addObject:photo];
}
if (!source) {
self.source = [[EGOQuickPhotoSource alloc] initWithPhotos:urlsArray];
}
photoController = [[EGOPhotoViewController alloc] initWithPhotoSource:source];
[self.navigationController pushViewController:photoController animated:YES];
NSUInteger index = [photoArray indexOfObject:passingImageName];
[photoController moveToPhotoAtIndex:index animated:NO];
}