CopyPastor

Detecting plagiarism made easy.

Score: 0.8293023109436035; Reported for: String similarity Open both answers

Possible Plagiarism

Plagiarized on 2020-01-08
by jawadAli

Original Post

Original - Posted on 2017-08-16
by A.G



            
Present in both answers; Present only in the new answer; Present only in the old answer;

This worked for me on horizontal collection view.
override func viewDidAppear(_ animated: Bool) { super.viewDidAppear(animated) //Show 14th row as first row self.activityCollectionView?.scrollToItem(at: IndexPath(row: 14, section: 0), at: UICollectionViewScrollPosition.right, animated: true) }
You can choose whether the desired cell at index to be on right or left on scroll position.
UICollectionViewScrollPosition.right or UICollectionViewScrollPosition.left.
**Swift 3:**
This worked for me on horizontal collection view.
override func viewDidAppear(_ animated: Bool) { super.viewDidAppear(animated)
//Show 14th row as first row self.activityCollectionView?.scrollToItem(at: IndexPath(row: 14, section: 0), at: UICollectionViewScrollPosition.right, animated: true) }

You can choose whether the desired cell at index to be on right or left on scroll position.
UICollectionViewScrollPosition.right or UICollectionViewScrollPosition.left.


        
Present in both answers; Present only in the new answer; Present only in the old answer;