select的图像不会加载在ios 7中的自我图像查看器

我正在使用EGOPhotoViewer加载一堆来自s3的图像。 它们在表格视图中以缩略图的forms显示,所以当用户点击第五行图像时,它将图像从20开始加载到图像查看器中。 这在ios 6中运行正常。

但是当我安装ios 7并运行我的app.i有一个错误。 它无法加载点击的图像。 当用户点击图像的第5行时,图像查看器会从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错误或其他?

  I got the solution of this,And it working fine For my app in IOS 7. In EGOphotoviewer - (void)scrollViewDidScroll:(UIScrollView *)scrollView { NSInteger _index = [self centerPhotoIndex]; if (_index >= [self.photoSource numberOfPhotos] || _index < 0) { return; } //Change here for IOS7...add "&&_index>0" after _rotating if (_pageIndex != _index && !_rotating && _index > 0) { [self setBarsHidden:NO animated:YES]; _pageIndex = _index; [self setViewState]; if (![scrollView isTracking]) { [self layoutScrollViewSubviews]; } } 

}

在EGOphotoviewcontroller中用viewwillappear方法

  if ([self.navigationController isToolbarHidden] && (!_popover || ([self.photoSource numberOfPhotos] > 1))) { [self.navigationController setToolbarHidden:NO animated:YES]; } 

调用这个方法后,ios7的_pageindex值变为零,我不知道这个的实际原因,但我会给一个想法。 在这个语句之后只要指定_pageindex的值,比如indexpath.row或者可以是你要分配的标记值,

然后事情进展顺利… njoy …