iOS) Modal ์˜ Life Cycle

less than 1 minute read

๐Ÿ“Œ 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

Categories:

Updated: