私は EGOPhotoViewer を使用して、s3 から大量の画像をロードしています。それらは最初にテーブル ビューのサムネイルに表示されるため、ユーザーが画像の 5 行目をクリックすると、画像が 5 of 20 から画像ビューアーに読み込まれます。これはios 6でスムーズに機能しています。
しかし、ios 7をインストールしてアプリを実行すると、エラーが発生しました。クリックした画像を読み込めません。ユーザーが画像の 5 行目をクリックすると、画像ビューアーは 1/20 から始まる最初の画像を読み込みます。
私はこの多くのコードを使用しています。
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{ ......
[self showSelectedPhoto:indexPath];
......
}
//load the selected image
-(void)showSelectedPhoto:(NSIndexPath *)indexPath
{
[UserInfo sharedInfo].Path=indexPath;
NSLog(@"%@",indexPath);
NSString *passingImageName=[[self.tableDataSource objectAtIndex:indexPath.row]objectForKey:@"fileName"];
NSMutableArray *photoArray=[self getFilteredArray];
NSMutableArray *urlsArray=[[NSMutableArray alloc] init];
// [self.tableView reloadData];
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];
}
self.source=[[EGOQuickPhotoSource alloc]initWithPhotos:urlsArray];
photoController = [[EGOPhotoViewController alloc] initWithPhotoSource:source];
[self.navigationController pushViewController:photoController animated:YES];
NSUInteger index = [photoArray indexOfObject:passingImageName];
NSLog(@"index = %lu",(unsigned long)index);
[photoController moveToPhotoAtIndex:index animated:NO];
}
それはios 7のUIバグか何かですか?