TIL39 ✨

YaR LabΒ·2023λ…„ 6μ›” 15일
0

TIL✨

λͺ©λ‘ 보기
28/136
post-thumbnail

πŸ—“οΈ 23.06.15

UIApplicationDelegate

ios 12μ΄ν•˜
app delegate objectλŠ” μ•±μ˜ 곡유 ν–‰μœ„λ₯Ό 관리 함
μ•±μ˜ root objectμž„

UISceneDelegate

ios 13이상
객체λ₯Ό μ‚¬μš©ν•˜μ—¬ scene-based app에 Life Cycle μ΄λ²€νŠΈμ— 응닡

μ•±μ˜ μƒνƒœ

앱이 foreground λ˜λŠ” background에 μžˆμ„ λ•Œ μ‹œμŠ€ν…œ μ•Œλ¦Όμ— μ‘λ‹΅ν•˜κ³  기타 μ€‘μš”ν•œ μ‹œμŠ€ν…œ κ΄€λ ¨ 이벀트λ₯Ό μ²˜λ¦¬ν•©λ‹ˆλ‹€.

Not Running

Foreground Inactive

Foreground active

background

suspended

μƒνƒœκ°€ λ³€ν• λ•Œ Appdelegateμ—μ„œ λͺ‡λͺ‡ ν•¨μˆ˜λ₯Ό μ΄μš©ν•˜μ—¬ μ•±μ˜ μƒνƒœκ°€ λ°”λ€”λ•Œ μž‘μ—…μ„ ν•  수 μžˆλ‹€.

scene은 λ””λ°”μ΄μŠ€μ—μ„œ μ‹€ν–‰λ˜λŠ” μ•± UI의 ν•œ μΈμŠ€ν„΄μŠ€λ₯Ό λ‚˜νƒ€λƒ„
sceneλ§ˆλ‹€ κ³ μœ ν•œ Life Cycle이 μžˆλ‹€

let changedSignNumber = number.sign == .plus ? -number : abs(number)

autoLayout λ°©ν•™λ•Œ κΌ­ λ“£κΈ°!!

0개의 λŒ“κΈ€