Recent Comments
- Today
- 0
- Total
- 229,869
Notice
개발은 너무해
collectionView cell 이동 본문
반응형
버튼을 클릭했을 경우 화면에 해당 collectionViewCell 위치로 이동할 수 있게 한다.
@IBAction func time00(sender: AnyObject) { self.collectionview?.scrollToItemAtIndexPath(NSIndexPath(forItem: 0, inSection: 0), atScrollPosition: .Left, animated: true) } |
forItem 은 이동하는 셀로우 : IndexPath.row 라고 생각하면 될 듯..
atScrollPosition 은 화면에 어떤 위치를 기준으로 삼아서 해당 셀을 보여 줄 것인지 : .Top, .Bottom, .Left, .Right
반응형
'iOS-Develop(Swift)' 카테고리의 다른 글
app심사 및 itunes connect 사용법 링크 (0) | 2016.09.01 |
---|---|
Multi Return Values (0) | 2016.08.12 |
collectionView cell 이동 (0) | 2016.08.04 |
특정 문자에 대한 분할(componentsSeparatedByString) (0) | 2016.08.03 |
[ERROR] pod install 시 Unable to satisfy the following requirements (0) | 2016.08.01 |
How to kill your app when it enters background mode (0) | 2016.07.15 |
0 Comments