iOS) UICollectionView ์—์„œ ๋‹น๊ฒจ์„œ ์ƒˆ๋กœ๊ณ ์นจ ๊ตฌํ˜„(UIRefreshControl)

๋‚ด์šฉ ์ธ์Šคํƒ€๊ทธ๋žจ์ฒ˜๋Ÿผ ๋ทฐ๋ฅผ ์•„๋ž˜๋กœ ๋‹น๊ฒจ์„œ ์ƒˆ๋กœ๊ณ ์นจ์„ ๊ตฌํ˜„ํ•ด๋ณด์ž. UIRefreshControl ์ธ์Šคํ„ด์Šค๋ฅผ ๋งŒ๋“ค์–ด์„œ scroll view ์˜ refreshControl ์— ์ ์šฉํ•ด๋ณด์ž. ๊ฐœ๋ฐœ์ž ๋ฌธ์„œ๋ฅผ ์‚ดํŽด๋ณด์ž! โ™ป๏ธ UIRefreshControl scroll view ์ปจํ…์ธ ์˜ ์ƒˆ๋กœ๊ณ ์นจ์„ ์‹œ์ž‘ํ•  ์ˆ˜ ์žˆ๋Š” ํ‘œ์ค€ control. Overview UIRefreshControl ๊ฐœ์ฒด๋Š” table view ์™€ collection view ๋ฅผ ํฌํ•จํ•˜์—ฌ UISrollView ๊ฐœ์ฒด์— ์—ฐ๊ฒฐํ•˜๋Š” ํ‘œ์ค€ control ์ž…๋‹ˆ๋‹ค. ์Šคํฌ๋กค ๊ฐ€๋Šฅํ•œ ๋ทฐ์— ์ถ”๊ฐ€ํ•ด์„œ ์‚ฌ์šฉ์ž์—๊ฒŒ ์ปจํ…์ธ ๋ฅผ ์ƒˆ๋กœ๊ณ ์นจํ•  ์ˆ˜ ์žˆ๋Š” ํ‘œ์ค€ ๋ฐฉ๋ฒ•์„ ์ œ๊ณตํ•ฉ๋‹ˆ๋‹ค. ์‚ฌ์šฉ์ž๊ฐ€ ์Šคํฌ๋กค ๊ฐ€๋Šฅํ•œ ์ปจํ…์ธ  ์˜์—ญ์˜ ์ƒ๋‹จ์„ ์•„๋ž˜๋กœ ๋“œ๋ž˜๊ทธํ•˜๋ฉด, scroll view ๊ฐ€ refresh contro..

iOS 2022. 2. 24. 16:03
์ตœ๊ทผ์— ์˜ฌ๋ผ์˜จ ๊ธ€
์ตœ๊ทผ์— ๋‹ฌ๋ฆฐ ๋Œ“๊ธ€
๊ธ€ ๋ณด๊ด€ํ•จ
ยซ   2024/11   ยป
์ผ ์›” ํ™” ์ˆ˜ ๋ชฉ ๊ธˆ ํ† 
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
๋งํฌ
Total
Today
Yesterday