๊ณต๋ถ€ ์—ฐ์Šต์žฅ :-)

UITabBarController & UITabBar์˜ ์ฐจ์ด

|

UITabBarController & UITabBar

์ผ๋ฐ˜์ ์ธ ๊ด€์ ์—์„œ์˜ View๊ณผ Controller์— ๋Œ€ํ•œ ์„ค๋ช…์€ ์•„๋ž˜์™€ ๊ฐ™๋‹ค.

  • View : ์‚ฌ์šฉ์ž์˜ ์ž…๋ ฅ์„ ๋ฐ›๊ณ  ์‚ฌ์šฉ์ž์—๊ฒŒ ๋ณด์—ฌ์ฃผ๋Š” ๋ฐ์ดํ„ฐ๋ฅผ ์–ด๋–ป๊ฒŒ ๋ณด์—ฌ์ค˜์•ผํ•˜๋Š”์ง€ ๊ด€๋ฆฌํ•˜๋Š” ๊ฐ์ฒด
  • Controller : ์‚ฌ์šฉ์ž์˜ ์ž…๋ ฅ์„ ์–ด๋–ป๊ฒŒ ์ฒ˜๋ฆฌํ•ด์•ผ ํ•˜๋Š”์ง€ ์•Œ๊ณ  ์‚ฌ์šฉ์ž์—๊ฒŒ ์–ด๋–ค ๋ฐ์ดํ„ฐ๋ฅผ ๋ณด์—ฌ์ค˜์•ผํ•˜๋Š”์ง€ ๊ด€๋ฆฌํ•˜๋Š” ๊ฐ์ฒด

์ด๋Ÿฐ ๊ด€์ ์œผ๋กœ ์ ‘๊ทผํ•œ๋‹ค๋ฉด,

  • UITabBar๋Š” View์— ๊ฐ€๊นŒ์šด ๊ฐœ๋…์œผ๋กœ, UITabBar๋Š” ์‚ฌ์šฉ์ž์—๊ฒŒ ํƒญ์„ ์–ด๋–ป๊ฒŒ ๋ณด์—ฌ์ค˜์•ผํ•˜๋Š”์ง€์—๋Œ€ํ•œ ์ฑ…์ž„์ด ์žˆ๋Š” ๊ฐ์ฒด
  • UITabBarController๋Š” Controller์— ๊ฐ€๊นŒ์šด ๊ฐœ๋…์œผ๋กœ, ์‚ฌ์šฉ์ž๊ฐ€ ํŠน์ •ํ•œ ํƒญ์„ ์„ ํƒํ–ˆ์„๋•Œ ์–ด๋–ค ํƒญ์ด ๋ณด์—ฌ์ ธ์•ผํ•˜๋Š”์ง€์—๋Œ€ํ•œ ์ฑ…์ž„์ด ์žˆ๋Š” ๊ฐ์ฒด๋ผ๊ณ  ์ƒ๊ฐํ•œ๋‹ค. ๊ณ  ์ƒ๊ฐํ•œ๋‹ค. ์ด๋Ÿฐ ๊ด€์ ์—์„œ ๋ณด๋ฉด UITabBarController์™€ UITabBar๋Š” ์ƒ/ํ•˜์œ„ ๋ชจ๋“ˆ ๊ด€๊ณ„ ๋ผ๊ณ  ๋ณผ ์ˆ˜๋„ ์žˆ๋‹ค๊ณ  ์ƒ๊ฐํ•œ๋‹ค.

๋‹ค๋งŒ, ๋ณดํ†ต UITabBar๋Š” UITabBarController์™€ ๊ฒฐํ•ฉํ•ด์„œ ์“ฐ์ด์ง€๋งŒ, UITabBar ๋‹จ์ผํ•˜๊ฒŒ ์ž์ฒด๋งŒ์œผ๋กœ๋„ ์“ฐ์ผ ์ˆ˜๋„ ์žˆ๊ธฐ๋•Œ๋ฌธ์— ์•„๋ž˜์™€ ๊ฐ™์€ ํŠน์ง•์ด ๊ณตํ†ต์ ์ด๋ผ๊ณ  ๋งํ•  ์ˆ˜ ์žˆ๋‹ค. (TabBar์— ๋Œ€ํ•œ ์ผ๋ฐ˜์ ์ธ ์„ค๋ช…)

  • ์‚ฌ์šฉ์ž๊ฐ€ ๋ทฐ ์ปจํŠธ๋กค๋Ÿฌ๋“ค ๊ฐ„์— ์ „ํ™˜ํ•  ์ˆ˜ ์žˆ๋Š” ๋ฐฉ๋ฒ•์„ ์ œ๊ณตํ•จ
  • ํŠน์ • ํƒญ์„ ๋ˆ„๋ฅด๋ฉด, ๊ทธ ํƒญ์— ์—ฐ๊ฒฐ๋œ ๋ทฐ ์ปจํŠธ๋กค๋Ÿฌ์˜ ๋ทฐ๊ฐ€ ๋‚˜ํƒ€๋‚œ๋‹ค.

์ฐธ๊ณ ๋งํฌ

Comments