์ผ | ์ | ํ | ์ | ๋ชฉ | ๊ธ | ํ |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
Tags
- visionOS
- arkit
- TCA
- MVVM
- SwiftUI
- SnapKit
- Lv2
- Swfit
- rxcocoa
- RxSwift
- BFS
- reactorkit
- XCTest
- raywenderlich
- Kuring
- node.js
- ๋ฐฑ์ค
- CollectionView
- swift
- ios
- UIKit
- BOJ
- Flutter
- ํจ์คํธ์บ ํผ์ค
- Xcode
- combine
- ํ๋ก๊ทธ๋๋จธ์ค
- tableView
- realm
- designpattern
Archives
- Today
- Total
๋ชฉ๋กHeight (1)
lgvv98
[iOS] UICollectionView์ ๋ํด์ ์์๋ณด๊ธฐ 3ํธ (๋์ Cell)
UICollectionView์ ๋ํด์ ์์๋ณด๊ธฐ 3ํธ โ ์ด๋ฒ์๋ CollectionView๋ฅผ ์ด์ฉํ์ฌ height์ ๋์ ์ผ๋ก ๊ตฌ์ฑํ๋ ๋ฐฉ๋ฒ์ ๋ํด์ ์์๋ณด์. ์ด ๋ถ๋ถ์ ์์ด์๋ ์ฌ๋ฌ๊ฐ์ ๊ตฌ๊ธ๋ง์ ํ๋ฉด์ ์ฌ๋ฌ๊ฐ์ ํฌ์คํ ์ ์ฐพ์๋ณด์๋ค. - dummyCell ๋ฐฉ๋ฒ์ด ๊ฐ์ฅ ํํ ๊ฒ ๊ฐ์๋ฐ, ์ ์๋์๋ค. - ๊ทธ๋์ ์ด ๋ฐฉ๋ฒ ์ฌ์ฉ ๊ณ ๊ณ ! - dummyCell์ ๊ฒฝ์ฐ์๋ ๋ด ์ฝ๋๋ฅผ ๊ฐ์ ธ๊ฐ์ ๋ฆฌํฉํ ๋งํด์ ์๋ ค์ฃผ๋ฉด ์ข๊ฒ ๋ค,, ๋๊ตฐ๊ฐ ์์ค์ฝ๋ ๐ฟ ๊ฒฐ๊ณผ๋ฌผ ๐ฟ โ ์ฝ๋ /// ์ ์ ๋ ์ด์์ ์ ๋ณด๋ฅผ ๊ตฌ์ฑ func collectionView(_ collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, sizeForItemAt ..
apple/๐ Apple Docs & iOS & Swift
2022. 8. 22. 22:20