self.mCollectionView.width = self.view.width
self.layout.itemSize = CGSize(width: self.view.width, height: 410*KSCALE_W)
self.mCollectionView.scrollToItem(at: IndexPath(row: self.currentIndex, section: 0), at: .centeredHorizontally, animated: false)
self.mCollectionView.width = self.view.width
self.layout.itemSize = CGSize(width: self.view.width, height: 410*KSCALE_W)
self.mCollectionView.scrollToItem(at: IndexPath(row: self.currentIndex, section: 0), at: .centeredHorizontally, animated: false)
本文标题:iOS开发-UICollectionViewCell随UICol
本文链接:https://www.haomeiwen.com/subject/fwknohtx.html
网友评论