blockshark
Results
1
issues of
blockshark
正确的写法应该是这样 private func getCurrentIndex() -> Int { let point = self.convert(collectionView.center, to: self.collectionView) let indexPath = self.collectionView.indexPathForItem(at: point) return indexPath?.item ?? 0 }