ํ‹ฐ์Šคํ† ๋ฆฌ ๋ทฐ

iOS

iOS) Modal ์˜ Life Cycle

hyun99999 2021. 8. 14. 17:17
728x90
๋ฐ˜์‘ํ˜•

๐Ÿ“Œ Modal presentation style

  • iOS 13 ๋ถ€ํ„ฐ default ๊ฐ’์ด automatic ์œผ๋กœ ๋ณ€๊ฒฝ๋˜์—ˆ๋‹ค. automatic ์€ ๋Œ€๋ถ€๋ถ„์˜ ๋ทฐ์ปจํŠธ๋กค๋Ÿฌ์˜ ๊ฒฝ์šฐ pagingSheet ์Šคํƒ€์ผ์— ๋งคํ•‘๋œ๋‹ค.

๐Ÿ“Œ Life Cycle

pagingSheet

presenting view controller ๊ฐ€ ๋’ค์— ๋ณด์ด๊ธฐ ๋•Œ๋ฌธ์— ์ œ๊ฑฐ๋˜์ง€ ์•Š๋Š”๋‹ค.

currentContext, fullScreen

presenting view controller ์€ presentation ์ด ๋๋‚œ ํ›„ ์ œ๊ฑฐ๋œ๋‹ค.

overCurrentContext, overFullScreen

presented view controller ์˜ ์•„๋ž˜์˜ ๋ทฐ๋Š” presentation ์ด ๋๋‚  ๋•Œ ๋ทฐ ๊ณ„์ธต์—์„œ ์ œ๊ฑฐ๋˜์ง€ ์•Š๋Š”๋‹ค. ๋”ฐ๋ผ์„œ ๋ถˆํˆฌ๋ช…ํ•œ ์ปจํ…์ธ ๋กœ ์ฑ„์šฐ์ง€ ์•Š์œผ๋ฉด ์•„๋ž˜์˜ ์ปจํ…์ธ ๊ฐ€ ๋ณด์ธ๋‹ค.

์ฐธ์กฐ

Apple Developer Documentation

iOS) ViewController์˜ ํŠน์ง•๊ณผ ์ƒ๋ช…์ฃผ๊ธฐ

[iOS] iOS13 Modal Style ๋ฐ Life Cycle

728x90
๋ฐ˜์‘ํ˜•
๋Œ“๊ธ€
์ตœ๊ทผ์— ์˜ฌ๋ผ์˜จ ๊ธ€
์ตœ๊ทผ์— ๋‹ฌ๋ฆฐ ๋Œ“๊ธ€
๊ธ€ ๋ณด๊ด€ํ•จ
ยซ   2024/12   ยป
์ผ ์›” ํ™” ์ˆ˜ ๋ชฉ ๊ธˆ ํ† 
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
๋งํฌ
Total
Today
Yesterday