0
func backBtnAction(){
var index = collectionView?.indexPathsForSelectedItems() as! [NSIndexPath]
collectionView?.scrollEnabled = true
collectionView?.reloadItemsAtIndexPaths(index)
}
wie indexpath
bekommen in der collectionview
... wie ichDowncast von '[NSIndexPath]?' zu '[NSIndexPath]' extrahiert nur Optionale; Wolltest du '!'
var index = collectionView?.indexPathsForSelectedItems() as! [NSIndexPath]