ABOUT ME

-

Today
-
Yesterday
-
Total
-
  • UIApplicationDelegate - UIKit
    iOS/๐ŸŽ Documentation 2021. 1. 28. 22:42
    ์ฐธ๊ณ  ์ž๋ฃŒ: developer.apple.com/documentation/uikit/uiapplicationdelegate

     

    Overview

    AppDelegate ์˜ค๋ธŒ์ ํŠธ๋Š” ์•ฑ ์ „๋ฐ˜์—์„œ ๊ณต์œ ๋˜๋Š” ๋™์ž‘๋“ค์„ ๊ด€๋ฆฌํ•ฉ๋‹ˆ๋‹ค.

     

    AppDelegate ๋Š” ์‚ฌ์‹ค์ƒ ์•ฑ์˜ root object ์ด๋ฉฐ, UIApplication ๊ณผ ์—ฐ๋Œ€ํ•˜์—ฌ ์‹œ์Šคํ…œ๊ณผ์˜ ์ƒํ˜ธ์ž‘์šฉ๋“ค์„ ๊ด€๋ฆฌํ•ฉ๋‹ˆ๋‹ค.

     

    UIApplication  ์˜ค๋ธŒ์ ํŠธ์™€ ๊ฐ™์ด, UIKit ์€ AppDelegate์„ launch-cycle ๋‹น์‹œ์— ๋ฏธ๋ฆฌ ์ƒ์„ฑํ•ด ๋†“์œผ๋ฏ€๋กœ, ํ•ญ์ƒ ์กด์žฌํ•ฉ๋‹ˆ๋‹ค.

    ๋”ฐ๋ผ์„œ ์ฝ”๋“œ์ƒ์—์„œ ํ•ญ์ƒ ์ ‘๊ทผํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

     


     

     

    AppDelegate ์˜ค๋ธŒ์ ํŠธ๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ ๋‹ค์Œ๊ณผ ๊ฐ™์€ ์ž‘์—…์„ ๋‹ค๋ฃฐ ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค:

     

    • ์•ฑ์˜ ์ค‘์‹ฌ์—ญํ• ์„ ํ•˜๋Š” ์ž๋ฃŒ๊ตฌ์กฐ๋ฅผ ์ดˆ๊ธฐํ™” ํ•˜๊ธฐ

    • ์•ฑ์˜ ์”ฌ์„ ๊ตฌ์„ฑํ•˜๊ธฐ

    • ์•ฑ ์™ธ๋ถ€์—์„œ๋ถ€ํ„ฐ ์˜จ notification ์— ๋Œ€์‘ํ•˜๊ธฐ. ์˜ˆ๋ฅผ ๋“ค์–ด low-memory warnings, download completion notificaiton ๋“ฑ

    • ์•ฑ ์˜ ์”ฌ์ด๋‚˜ view, view controller ๊ฐ€ ํƒ€๊นƒ์ด ์•„๋‹Œ ์•ฑ ์ž์ฒด๊ฐ€ ํƒ€๊นƒ์ด ๋˜๋Š” ์ด๋ฒคํŠธ์— ๋Œ€์‘ํ•˜๊ธฐ

    • Launch- time ์— ํ•„์š”ํ•œ ์„œ๋น„์Šค๋“ค ๋“ฑ๋กํ•˜๊ธฐ. ์˜ˆ๋ฅผ ๋“ค์–ด APN ์„œ๋น„์Šค

    ๊ด€๋ จ ๊ธ€: woozzang.tistory.com/72

    'iOS > ๐ŸŽ Documentation' ์นดํ…Œ๊ณ ๋ฆฌ์˜ ๋‹ค๋ฅธ ๊ธ€

    Preparing Your UI to Run in the Foreground - Scenes - UIKit  (0) 2021.01.29
    Scenes - UIKit  (0) 2021.01.29
    App and Environment - UIKit  (0) 2021.01.26
    Application Bundles - Bundle Structures  (0) 2021.01.26
    Cocoa (Touch) ๋ž€  (0) 2021.01.25

    ๋Œ“๊ธ€

์–ด์ œ๋ณด๋‹ค ๋ฐœ์ „ํ•œ ๋‚˜