# iOS App Life Cycle #### ๐ iOS 13์์ Scene Delegate๋ก ์ด๊ด๋ App Delegate์ ์ญํ ์ ๋ฌด์๋ฌด์์ด ์์๊น์? - iOS 12์ App Delegate์ ์ญํ ์ ํ๋ก์ธ์ค ์์ค ์ด๋ฒคํธ๋ฅผ ์ดํ๋ฆฌ์ผ์ด์ ์ ์๋ฆฌ๋ ๊ฒ๊ณผ ์ดํ๋ฆฌ์ผ์ด์ ์ UI ์ํ๋ฅผ ์๋ฆฌ๋ ๊ฒ ํฌ๊ฒ 2๊ฐ์ง๋ก ๋๋๋ค. ํ์ง๋ง ์ดํ๋ฆฌ์ผ์ด์ ์ ์ฌ์ ํ ํ๋์ ํ๋ก์ธ์ค๋ฅผ ๊ณต์ ํ์ง๋ง ์ฌ๋ฌ ์ฌ์ฉ์ ์ธํฐํ์ด์ค ์ธ์คํด์ค ๋๋ Scene ์ธ์ ์ ๊ฐ์ง ์ ์๋ iOS 13 ํจํด์ ์ ํจํ์ง ์์๋ค. ๊ทธ๋์ ์ 2๊ฐ์ง์ ์ญํ ์ด Scene Delegate์ ์ด๊ด๋์๋ค. - ํ๋ก์ธ์ค๋ ์ฑ ํ๋๊ฐ ๋ ๋ฆฝ์ ์ผ๋ก ๊ตฌ๋๋ ์ ์๋ "๊ณต๊ฐ"๊ฐ์ ๊ฐ๋ ์ด๋ค. (..?) #### ๐ App Delegate์ Scene Delegate์ ๊ฐ๊ฐ์ ์ญํ ์ ๋ฌด์์ผ๊น์? - App Delegate ์ฑ์ ๊ณต์ ๋์์ ๊ด๋ฆฌํ๋ ๋ฉ์๋ ์งํฉ์ด๊ณ , Scene Delegate์ Scene ๋ด์์ ๋ฐ์ํ๋ ์๋ช ์ฃผ๊ธฐ ์ด๋ฒคํธ์ ์๋ตํ๋ ๋ฐ ์ฌ์ฉํ๋ ํต์ฌ ๋ฐฉ๋ฒ์ด๋ค. #### ๐ Scene์ ๊ฐ๋ ์ด ์๊ธด ์ด์ ๋ ๋ฌด์์ด๊ณ , ์ธ์ ์ด๋์ ํ์ฉํด๋ณผ ์ ์์๊น์? - Scene, Multiple Scenes๊ธฐ๋ฅ์์ ๋งํ๋ scene์ ํ๋์ ์ฑ์ด ์ฌ๋ฌ ๋ถ์ ์ฒ๋ผ ๋์์ ์ฌ์ฉ๋๋ ๊ฒฝ์ฐ ๊ฐ๊ฐ์ ๋ถ์ ์ ์๋ฏธํ๋ค. - ์๋ฅผ ๋ค์ด, ๋์ผํ ์ฑ ํ๋ฉด์ ๋๊ฐ ๋์ด๋์์ ๋, ๋ ํ๋ฉด์ ๊ฐ๊ฐ ํ๋์ Scene์ด๋ผ ํ๊ณ , ์์ ๋ง์ lifecycle์ ๋ฐํ์ผ๋ก ์ด์๋๋๋ฐ์ ์ฌ์ฉ๋๋ค. #### ๐ ์ฑ์ ์ธ์ ์ธ์ Foreground Inactive ์ํ๊ฐ ๋ ๊น์? 2๊ฐ์ง ์ด์์ ์ฌ๋ก๋ฅผ ์๊ฐํด๋ด ์๋ค - ์ดํ๋ฆฌ์ผ์ด์ ์ด ์์๋๋ฉด์ Foreground๋ก ๋ค์ด์ค๋ฉด, Scene๋ ๊ณง๋ฐ๋ก ์ฌ์ฉ์์ ์ํธ์์ฉํ ์ ์๋ ์ํ๊ฐ ๋๋ค. ์ด๋ Scene์ ๋น ๋ฅด๊ฒ Foreground Inactive ์ํ๋ฅผ ๊ฑฐ์ณ Foreground Active ์ํ๋ก ์ ํ๋๋ค. Foreground Active๋ Foreground Inactive ์ํ๊ฐ ์ ํ๋๋ค. (ex. ์ฑ ์คํ ์ค์ ์๋ฆฌ๋ฅผ ์ผฐ์ ๋, ์ฑ ์คํ ์ค ์ ํ๊ฐ ์์ ๋) #### ๐ ์ฑ์ ์ํ๊ฐ Background๋ก ์ง์๋๊ธฐ ์ํ ์๊ฑด์ ๋ฌด์์ผ๊น์? - ๋ค๋ฅธ ์ฑ์ผ๋ก ์ ํํ๊ฑฐ๋ ํ์ผ๋ก ์ด๋ํ๋ฉด - ์ฑ ๋๊ฐ์ ๊ทธ ์ข ๋ฃํ์ง๋ง ์์ผ๋ฉด ๋์ง์๋?
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up