iOS) Design pattern MVVM(1/2) - MVC, MVVM ์•Œ์•„๋ณด๊ธฐ

๐ŸŒ‚ Design Pattern ๋””์ž์ธ ํŒจํ„ด์„ ์ •ํ•˜๊ฒŒ ๋˜๋ฉด ๋ชจ๋“  ํด๋ž˜์Šค์™€ ์†์„ฑ์„ ๊ตฌ์กฐ์ ์œผ๋กœ ์ •๋ฆฌ๊ฐ€๋Šฅํ•˜๋ฉฐ ํŒ€ ์ž‘์—… ์‹œ ์›ํ™œํ•œ ์˜์‚ฌ์†Œํ†ต๊ณผ ์ฝ”๋“œ ์ˆ˜์ •์ด ๊ฐ€๋Šฅํ•˜๋‹ค. โ—๏ธ MVC(Model-View-Controller) Model : ๋ฐ์ดํ„ฐ์— ๊ด€ํ•œ ๋กœ์ง ๋‹ด๋‹น(๋ฐ์ดํ„ฐ ๊ฐ’ ๋ณ€๊ฒฝ ๋ฐ ๊ด€๋ฆฌ) View : ์‚ฌ์šฉ์ž์—๊ฒŒ ๋ณด์—ฌ์ง€๋Š” ํ™”๋ฉด ๋‹ด๋‹น(UI) Controller : Model ๊ณผ View ์—ฐ๊ฒฐ(Model ๊ฐ’์„ View ์— ๋ณด์—ฌ์คŒ) ์˜ค๋ฆฌ์ง€๋‚  MVC ํŒจํ„ด์€ iOS ๊ฐœ๋ฐœ์— ์ ํ•ฉํ•˜์ง€ ์•Š์•„(Model,View,Controller ๊ฐ€ ๋„ˆ๋ฌด ๋ฐ€์ ‘ํ•˜๊ฒŒ ์—ฐ๊ด€) ์• ํ”Œ์—์„œ๋Š” CocoaMVC ํŒจํ„ด์„ ์ œ์‹œํ–ˆ๋‹ค. Controller ๊ฐ€ View ์™€ Model ์˜ ์ค‘์žฌ์ž ์—ญํ• ์„ ํ•˜์—ฌ View ์™€ Model ์— ๋…๋ฆฝ์„ฑ ๋ถ€์—ฌ. ํ•˜์ง€๋งŒ ์• ํ”Œ์˜ CocoaM..

iOS/Design Pattern 2021. 8. 24. 00:06
์ตœ๊ทผ์— ์˜ฌ๋ผ์˜จ ๊ธ€
์ตœ๊ทผ์— ๋‹ฌ๋ฆฐ ๋Œ“๊ธ€
๊ธ€ ๋ณด๊ด€ํ•จ
ยซ   2024/11   ยป
์ผ ์›” ํ™” ์ˆ˜ ๋ชฉ ๊ธˆ ํ† 
1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
๋งํฌ
Total
Today
Yesterday