GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — 0.1.5 · FPJack/FPImageVideoCell@fd5fda8

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • FPImageVideoCell.podspec
  • FPImageVideoCell/Classes
    • FPImageVideoCell.m
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎FPImageVideoCell.podspec‎

Copy file name to clipboardExpand all lines: FPImageVideoCell.podspec
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
Pod::Spec.new do |s|
1010
s.name = 'FPImageVideoCell'
11-
s.version = '0.1.4'
11+
s.version = '0.1.5'
1212
s.summary = 'A short description of FPImageVideoCell.'
1313

1414
# This description is used to generate tags and improve search results.
Collapse file

‎FPImageVideoCell/Classes/FPImageVideoCell.m‎

Copy file name to clipboardExpand all lines: FPImageVideoCell/Classes/FPImageVideoCell.m
+3-1Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -473,6 +473,7 @@ - (void)collectionView:(UICollectionView *)collectionView didSelectItemAtIndexPa
473473
self.tapImageBlock(self.source[indexPath.item], [collectionView cellForItemAtIndexPath:indexPath]);
474474
}else{
475475
NSMutableArray *images = [NSMutableArray array];
476+
__block NSInteger currentPage = 0;
476477
[self.source enumerateObjectsUsingBlock:^(id _Nonnull obj, NSUInteger idx, BOOL * _Nonnull stop) {
477478
if (![obj isKindOfClass:[FPVideoItem class]]) {
478479
YBIBImageData *data = [YBIBImageData new];
@@ -482,12 +483,13 @@ - (void)collectionView:(UICollectionView *)collectionView didSelectItemAtIndexPa
482483
data.imageURL = [NSURL URLWithString:obj];
483484
}
484485
data.projectiveView = [collectionView cellForItemAtIndexPath:[NSIndexPath indexPathForItem:idx inSection:0]];
486+
if (idx == indexPath.item) currentPage = images.count;
485487
[images addObject:data];
486488
}
487489
}];
488490
YBImageBrowser *browser = [YBImageBrowser new];
489491
browser.dataSourceArray = images;
490-
browser.currentPage = indexPath.item;
492+
browser.currentPage = currentPage;
491493
[browser show];
492494
}
493495
}

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.