Notice
Recent Posts
Recent Comments
Link
목록2025/01/29 (1)
大器晩成
CollectionView 2탄 - 디바이스 별 Cell 크기 조정
지난 포스팅 때에는 컬렉션뷰를 코드베이스로 만드는 것과 레이아웃 설정에 대해서 간단하게 말씀드렸습니다.이번 포스팅에서는 디바이스별 셀의 똑같은 형태로 보이게 하기 위해서는 어떻게 할 수 있을지에 대해서 알아보도록 하겠습니다. 1. Scroll - Horizontal 방식일 때, private func collecionViewFlowLayout() -> UICollectionViewFlowLayout { let layout = UICollectionViewFlowLayout() let deviceWidth = UIScreen.main.bounds.size.width let spacing: CGFloat = 4 let inset..
iOS/UiKit
2025. 1. 29. 10:14