1
最小の行番号を持つindexpathを取得します。このコードを使用しようとしていますが、minElementの実装方法がわかりません。swift配列でminElementを使用する方法
try self.collectionView.indexPathsForVisibleItems().minElement(<isOrderedBefore: (NSIndexPath, NSIndexPath) throws -> Bool)
ここでも同様の質問:http://stackoverflow.com/questions/40630061/get-the-smallest-indexpath-from-an-array –