-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weโll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feat] ๐ 3์ฃผ์ฐจ ๊ณผ์ ์๋ฃ #11
Conversation
##### ์ ๋ชฉ์ ์ต๋ 50 ๊ธ์๊น์ง๋ง ์ ๋ ฅ ############## -> | # ๋ณธ๋ฌธ์ ์์ ์์ฑ ######## ๋ณธ๋ฌธ์ ํ ์ค์ ์ต๋ 72 ๊ธ์๊น์ง๋ง ์ ๋ ฅ ########################### -> | # ๊ผฌ๋ฆฟ๋ง์ ์๋์ ์์ฑ: ex) #์ด์ ๋ฒํธ # --- COMMIT END --- # <ํ์ > ๋ฆฌ์คํธ # feat sparkles : ๊ธฐ๋ฅ(์๋ก์ด ๊ธฐ๋ฅ) # fix beetle : ๋ฒ๊ทธ(๋ฒ๊ทธ ์์ ) # refactor hammer : refacetor ๋ฆฌํฉํ ๋ง # style art : ์คํ์ผ( ์ฝ๋ ํ์ ๋ณ๊ฒฝ, ๋ก์ง ๋ณ๊ฒฝ ์์) # doc pencil : ๋ฌธ์(๋ฌธ์ ์ถ๊ฐ, ์์ , ์ญ์ ) # test white_check_mark : ํ ์คํธ ์ฝ๋ ์ถ๊ฐ # chore moyai : ๊ธฐํ ๋ณ๊ฒฝ์ฌํญ # ------------------ # ์ ๋ชฉ ์ฒซ ๊ธ์๋ฅผ ๋๋ฌธ์๋ก # ์ ๋ชฉ์ ๋ช ๋ น๋ฌธ์ผ๋ก # ์ ๋ชฉ ๋์ ๋ง์นจํ(.) ๊ธ์ง # ์ ๋ชฉ๊ณผ ๋ณธ๋ฌธ์ ํ ์ค ๋์ ๋ถ๋ฆฌํ๊ธฐ # ๋ณธ๋ฌธ์ "์ด๋ป๊ฒ" ๋ณด๋ค "๋ฌด์์", "์"๋ฅผ ์ค๋ช ํ๋ค. # ๋ณธ๋ฌธ์ ์ฌ๋ฌ์ค์ ๋ฉ์์ง๋ฅผ ์์ฑํ ๋ "-"๋ก ๊ตฌ๋ถ # ------------------
##### ์ ๋ชฉ์ ์ต๋ 50 ๊ธ์๊น์ง๋ง ์ ๋ ฅ ############## -> | # ๋ณธ๋ฌธ์ ์์ ์์ฑ ######## ๋ณธ๋ฌธ์ ํ ์ค์ ์ต๋ 72 ๊ธ์๊น์ง๋ง ์ ๋ ฅ ########################### -> | # ๊ผฌ๋ฆฟ๋ง์ ์๋์ ์์ฑ: ex) #์ด์ ๋ฒํธ # --- COMMIT END --- # <ํ์ > ๋ฆฌ์คํธ # feat sparkles : ๊ธฐ๋ฅ(์๋ก์ด ๊ธฐ๋ฅ) # fix beetle : ๋ฒ๊ทธ(๋ฒ๊ทธ ์์ ) # refactor hammer : refacetor ๋ฆฌํฉํ ๋ง # style art : ์คํ์ผ( ์ฝ๋ ํ์ ๋ณ๊ฒฝ, ๋ก์ง ๋ณ๊ฒฝ ์์) # doc pencil : ๋ฌธ์(๋ฌธ์ ์ถ๊ฐ, ์์ , ์ญ์ ) # test white_check_mark : ํ ์คํธ ์ฝ๋ ์ถ๊ฐ # chore moyai : ๊ธฐํ ๋ณ๊ฒฝ์ฌํญ # ------------------ # ์ ๋ชฉ ์ฒซ ๊ธ์๋ฅผ ๋๋ฌธ์๋ก # ์ ๋ชฉ์ ๋ช ๋ น๋ฌธ์ผ๋ก # ์ ๋ชฉ ๋์ ๋ง์นจํ(.) ๊ธ์ง # ์ ๋ชฉ๊ณผ ๋ณธ๋ฌธ์ ํ ์ค ๋์ ๋ถ๋ฆฌํ๊ธฐ # ๋ณธ๋ฌธ์ "์ด๋ป๊ฒ" ๋ณด๋ค "๋ฌด์์", "์"๋ฅผ ์ค๋ช ํ๋ค. # ๋ณธ๋ฌธ์ ์ฌ๋ฌ์ค์ ๋ฉ์์ง๋ฅผ ์์ฑํ ๋ "-"๋ก ๊ตฌ๋ถ # ------------------
##### ์ ๋ชฉ์ ์ต๋ 50 ๊ธ์๊น์ง๋ง ์ ๋ ฅ ############## -> | # ๋ณธ๋ฌธ์ ์์ ์์ฑ ######## ๋ณธ๋ฌธ์ ํ ์ค์ ์ต๋ 72 ๊ธ์๊น์ง๋ง ์ ๋ ฅ ########################### -> | # ๊ผฌ๋ฆฟ๋ง์ ์๋์ ์์ฑ: ex) #์ด์ ๋ฒํธ # --- COMMIT END --- # <ํ์ > ๋ฆฌ์คํธ # feat sparkles : ๊ธฐ๋ฅ(์๋ก์ด ๊ธฐ๋ฅ) # fix beetle : ๋ฒ๊ทธ(๋ฒ๊ทธ ์์ ) # refactor hammer : refacetor ๋ฆฌํฉํ ๋ง # style art : ์คํ์ผ( ์ฝ๋ ํ์ ๋ณ๊ฒฝ, ๋ก์ง ๋ณ๊ฒฝ ์์) # doc pencil : ๋ฌธ์(๋ฌธ์ ์ถ๊ฐ, ์์ , ์ญ์ ) # test white_check_mark : ํ ์คํธ ์ฝ๋ ์ถ๊ฐ # chore moyai : ๊ธฐํ ๋ณ๊ฒฝ์ฌํญ # ------------------ # ์ ๋ชฉ ์ฒซ ๊ธ์๋ฅผ ๋๋ฌธ์๋ก # ์ ๋ชฉ์ ๋ช ๋ น๋ฌธ์ผ๋ก # ์ ๋ชฉ ๋์ ๋ง์นจํ(.) ๊ธ์ง # ์ ๋ชฉ๊ณผ ๋ณธ๋ฌธ์ ํ ์ค ๋์ ๋ถ๋ฆฌํ๊ธฐ # ๋ณธ๋ฌธ์ "์ด๋ป๊ฒ" ๋ณด๋ค "๋ฌด์์", "์"๋ฅผ ์ค๋ช ํ๋ค. # ๋ณธ๋ฌธ์ ์ฌ๋ฌ์ค์ ๋ฉ์์ง๋ฅผ ์์ฑํ ๋ "-"๋ก ๊ตฌ๋ถ # ------------------
##### ์ ๋ชฉ์ ์ต๋ 50 ๊ธ์๊น์ง๋ง ์ ๋ ฅ ############## -> | # ๋ณธ๋ฌธ์ ์์ ์์ฑ ######## ๋ณธ๋ฌธ์ ํ ์ค์ ์ต๋ 72 ๊ธ์๊น์ง๋ง ์ ๋ ฅ ########################### -> | # ๊ผฌ๋ฆฟ๋ง์ ์๋์ ์์ฑ: ex) #์ด์ ๋ฒํธ # --- COMMIT END --- # <ํ์ > ๋ฆฌ์คํธ # feat sparkles : ๊ธฐ๋ฅ(์๋ก์ด ๊ธฐ๋ฅ) # fix beetle : ๋ฒ๊ทธ(๋ฒ๊ทธ ์์ ) # refactor hammer : refacetor ๋ฆฌํฉํ ๋ง # style art : ์คํ์ผ( ์ฝ๋ ํ์ ๋ณ๊ฒฝ, ๋ก์ง ๋ณ๊ฒฝ ์์) # doc pencil : ๋ฌธ์(๋ฌธ์ ์ถ๊ฐ, ์์ , ์ญ์ ) # test white_check_mark : ํ ์คํธ ์ฝ๋ ์ถ๊ฐ # chore moyai : ๊ธฐํ ๋ณ๊ฒฝ์ฌํญ # ------------------ # ์ ๋ชฉ ์ฒซ ๊ธ์๋ฅผ ๋๋ฌธ์๋ก # ์ ๋ชฉ์ ๋ช ๋ น๋ฌธ์ผ๋ก # ์ ๋ชฉ ๋์ ๋ง์นจํ(.) ๊ธ์ง # ์ ๋ชฉ๊ณผ ๋ณธ๋ฌธ์ ํ ์ค ๋์ ๋ถ๋ฆฌํ๊ธฐ # ๋ณธ๋ฌธ์ "์ด๋ป๊ฒ" ๋ณด๋ค "๋ฌด์์", "์"๋ฅผ ์ค๋ช ํ๋ค. # ๋ณธ๋ฌธ์ ์ฌ๋ฌ์ค์ ๋ฉ์์ง๋ฅผ ์์ฑํ ๋ "-"๋ก ๊ตฌ๋ถ # ------------------
##### ์ ๋ชฉ์ ์ต๋ 50 ๊ธ์๊น์ง๋ง ์ ๋ ฅ ############## -> | # ๋ณธ๋ฌธ์ ์์ ์์ฑ ######## ๋ณธ๋ฌธ์ ํ ์ค์ ์ต๋ 72 ๊ธ์๊น์ง๋ง ์ ๋ ฅ ########################### -> | # ๊ผฌ๋ฆฟ๋ง์ ์๋์ ์์ฑ: ex) #์ด์ ๋ฒํธ # --- COMMIT END --- # <ํ์ > ๋ฆฌ์คํธ # feat sparkles : ๊ธฐ๋ฅ(์๋ก์ด ๊ธฐ๋ฅ) # fix beetle : ๋ฒ๊ทธ(๋ฒ๊ทธ ์์ ) # refactor hammer : refacetor ๋ฆฌํฉํ ๋ง # style art : ์คํ์ผ( ์ฝ๋ ํ์ ๋ณ๊ฒฝ, ๋ก์ง ๋ณ๊ฒฝ ์์) # doc pencil : ๋ฌธ์(๋ฌธ์ ์ถ๊ฐ, ์์ , ์ญ์ ) # test white_check_mark : ํ ์คํธ ์ฝ๋ ์ถ๊ฐ # chore moyai : ๊ธฐํ ๋ณ๊ฒฝ์ฌํญ # ------------------ # ์ ๋ชฉ ์ฒซ ๊ธ์๋ฅผ ๋๋ฌธ์๋ก # ์ ๋ชฉ์ ๋ช ๋ น๋ฌธ์ผ๋ก # ์ ๋ชฉ ๋์ ๋ง์นจํ(.) ๊ธ์ง # ์ ๋ชฉ๊ณผ ๋ณธ๋ฌธ์ ํ ์ค ๋์ ๋ถ๋ฆฌํ๊ธฐ # ๋ณธ๋ฌธ์ "์ด๋ป๊ฒ" ๋ณด๋ค "๋ฌด์์", "์"๋ฅผ ์ค๋ช ํ๋ค. # ๋ณธ๋ฌธ์ ์ฌ๋ฌ์ค์ ๋ฉ์์ง๋ฅผ ์์ฑํ ๋ "-"๋ก ๊ตฌ๋ถ # ------------------
##### ์ ๋ชฉ์ ์ต๋ 50 ๊ธ์๊น์ง๋ง ์ ๋ ฅ ############## -> | # ๋ณธ๋ฌธ์ ์์ ์์ฑ ######## ๋ณธ๋ฌธ์ ํ ์ค์ ์ต๋ 72 ๊ธ์๊น์ง๋ง ์ ๋ ฅ ########################### -> | # ๊ผฌ๋ฆฟ๋ง์ ์๋์ ์์ฑ: ex) #์ด์ ๋ฒํธ # --- COMMIT END --- # <ํ์ > ๋ฆฌ์คํธ # feat sparkles : ๊ธฐ๋ฅ(์๋ก์ด ๊ธฐ๋ฅ) # fix beetle : ๋ฒ๊ทธ(๋ฒ๊ทธ ์์ ) # refactor hammer : refacetor ๋ฆฌํฉํ ๋ง # style art : ์คํ์ผ( ์ฝ๋ ํ์ ๋ณ๊ฒฝ, ๋ก์ง ๋ณ๊ฒฝ ์์) # doc pencil : ๋ฌธ์(๋ฌธ์ ์ถ๊ฐ, ์์ , ์ญ์ ) # test white_check_mark : ํ ์คํธ ์ฝ๋ ์ถ๊ฐ # chore moyai : ๊ธฐํ ๋ณ๊ฒฝ์ฌํญ # ------------------ # ์ ๋ชฉ ์ฒซ ๊ธ์๋ฅผ ๋๋ฌธ์๋ก # ์ ๋ชฉ์ ๋ช ๋ น๋ฌธ์ผ๋ก # ์ ๋ชฉ ๋์ ๋ง์นจํ(.) ๊ธ์ง # ์ ๋ชฉ๊ณผ ๋ณธ๋ฌธ์ ํ ์ค ๋์ ๋ถ๋ฆฌํ๊ธฐ # ๋ณธ๋ฌธ์ "์ด๋ป๊ฒ" ๋ณด๋ค "๋ฌด์์", "์"๋ฅผ ์ค๋ช ํ๋ค. # ๋ณธ๋ฌธ์ ์ฌ๋ฌ์ค์ ๋ฉ์์ง๋ฅผ ์์ฑํ ๋ "-"๋ก ๊ตฌ๋ถ # ------------------
##### ์ ๋ชฉ์ ์ต๋ 50 ๊ธ์๊น์ง๋ง ์ ๋ ฅ ############## -> | # ๋ณธ๋ฌธ์ ์์ ์์ฑ ######## ๋ณธ๋ฌธ์ ํ ์ค์ ์ต๋ 72 ๊ธ์๊น์ง๋ง ์ ๋ ฅ ########################### -> | # ๊ผฌ๋ฆฟ๋ง์ ์๋์ ์์ฑ: ex) #์ด์ ๋ฒํธ # --- COMMIT END --- # <ํ์ > ๋ฆฌ์คํธ # feat sparkles : ๊ธฐ๋ฅ(์๋ก์ด ๊ธฐ๋ฅ) # fix beetle : ๋ฒ๊ทธ(๋ฒ๊ทธ ์์ ) # refactor hammer : refacetor ๋ฆฌํฉํ ๋ง # style art : ์คํ์ผ( ์ฝ๋ ํ์ ๋ณ๊ฒฝ, ๋ก์ง ๋ณ๊ฒฝ ์์) # doc pencil : ๋ฌธ์(๋ฌธ์ ์ถ๊ฐ, ์์ , ์ญ์ ) # test white_check_mark : ํ ์คํธ ์ฝ๋ ์ถ๊ฐ # chore moyai : ๊ธฐํ ๋ณ๊ฒฝ์ฌํญ # ------------------ # ์ ๋ชฉ ์ฒซ ๊ธ์๋ฅผ ๋๋ฌธ์๋ก # ์ ๋ชฉ์ ๋ช ๋ น๋ฌธ์ผ๋ก # ์ ๋ชฉ ๋์ ๋ง์นจํ(.) ๊ธ์ง # ์ ๋ชฉ๊ณผ ๋ณธ๋ฌธ์ ํ ์ค ๋์ ๋ถ๋ฆฌํ๊ธฐ # ๋ณธ๋ฌธ์ "์ด๋ป๊ฒ" ๋ณด๋ค "๋ฌด์์", "์"๋ฅผ ์ค๋ช ํ๋ค. # ๋ณธ๋ฌธ์ ์ฌ๋ฌ์ค์ ๋ฉ์์ง๋ฅผ ์์ฑํ ๋ "-"๋ก ๊ตฌ๋ถ # ------------------
##### ์ ๋ชฉ์ ์ต๋ 50 ๊ธ์๊น์ง๋ง ์ ๋ ฅ ############## -> | # ๋ณธ๋ฌธ์ ์์ ์์ฑ ######## ๋ณธ๋ฌธ์ ํ ์ค์ ์ต๋ 72 ๊ธ์๊น์ง๋ง ์ ๋ ฅ ########################### -> | # ๊ผฌ๋ฆฟ๋ง์ ์๋์ ์์ฑ: ex) #์ด์ ๋ฒํธ # --- COMMIT END --- # <ํ์ > ๋ฆฌ์คํธ # feat sparkles : ๊ธฐ๋ฅ(์๋ก์ด ๊ธฐ๋ฅ) # fix beetle : ๋ฒ๊ทธ(๋ฒ๊ทธ ์์ ) # refactor hammer : refacetor ๋ฆฌํฉํ ๋ง # style art : ์คํ์ผ( ์ฝ๋ ํ์ ๋ณ๊ฒฝ, ๋ก์ง ๋ณ๊ฒฝ ์์) # doc pencil : ๋ฌธ์(๋ฌธ์ ์ถ๊ฐ, ์์ , ์ญ์ ) # test white_check_mark : ํ ์คํธ ์ฝ๋ ์ถ๊ฐ # chore moyai : ๊ธฐํ ๋ณ๊ฒฝ์ฌํญ # ------------------ # ์ ๋ชฉ ์ฒซ ๊ธ์๋ฅผ ๋๋ฌธ์๋ก # ์ ๋ชฉ์ ๋ช ๋ น๋ฌธ์ผ๋ก # ์ ๋ชฉ ๋์ ๋ง์นจํ(.) ๊ธ์ง # ์ ๋ชฉ๊ณผ ๋ณธ๋ฌธ์ ํ ์ค ๋์ ๋ถ๋ฆฌํ๊ธฐ # ๋ณธ๋ฌธ์ "์ด๋ป๊ฒ" ๋ณด๋ค "๋ฌด์์", "์"๋ฅผ ์ค๋ช ํ๋ค. # ๋ณธ๋ฌธ์ ์ฌ๋ฌ์ค์ ๋ฉ์์ง๋ฅผ ์์ฑํ ๋ "-"๋ก ๊ตฌ๋ถ # ------------------
##### ์ ๋ชฉ์ ์ต๋ 50 ๊ธ์๊น์ง๋ง ์ ๋ ฅ ############## -> | # ๋ณธ๋ฌธ์ ์์ ์์ฑ ######## ๋ณธ๋ฌธ์ ํ ์ค์ ์ต๋ 72 ๊ธ์๊น์ง๋ง ์ ๋ ฅ ########################### -> | # ๊ผฌ๋ฆฟ๋ง์ ์๋์ ์์ฑ: ex) #์ด์ ๋ฒํธ # --- COMMIT END --- # <ํ์ > ๋ฆฌ์คํธ # feat sparkles : ๊ธฐ๋ฅ(์๋ก์ด ๊ธฐ๋ฅ) # fix beetle : ๋ฒ๊ทธ(๋ฒ๊ทธ ์์ ) # refactor hammer : refacetor ๋ฆฌํฉํ ๋ง # style art : ์คํ์ผ( ์ฝ๋ ํ์ ๋ณ๊ฒฝ, ๋ก์ง ๋ณ๊ฒฝ ์์) # doc pencil : ๋ฌธ์(๋ฌธ์ ์ถ๊ฐ, ์์ , ์ญ์ ) # test white_check_mark : ํ ์คํธ ์ฝ๋ ์ถ๊ฐ # chore moyai : ๊ธฐํ ๋ณ๊ฒฝ์ฌํญ # ------------------ # ์ ๋ชฉ ์ฒซ ๊ธ์๋ฅผ ๋๋ฌธ์๋ก # ์ ๋ชฉ์ ๋ช ๋ น๋ฌธ์ผ๋ก # ์ ๋ชฉ ๋์ ๋ง์นจํ(.) ๊ธ์ง # ์ ๋ชฉ๊ณผ ๋ณธ๋ฌธ์ ํ ์ค ๋์ ๋ถ๋ฆฌํ๊ธฐ # ๋ณธ๋ฌธ์ "์ด๋ป๊ฒ" ๋ณด๋ค "๋ฌด์์", "์"๋ฅผ ์ค๋ช ํ๋ค. # ๋ณธ๋ฌธ์ ์ฌ๋ฌ์ค์ ๋ฉ์์ง๋ฅผ ์์ฑํ ๋ "-"๋ก ๊ตฌ๋ถ # ------------------
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
์ง์ง ๊ฝ์ผ๋ก ๋ด๋ ๋๋ ์ถ์ ์ฝ๋๋ค์.. ...
ํญ์ ๋ง์ด ๋ฐฐ์ฐ๊ณ ๊ฐ๋๋ค...
๐ฐ๐ฐ๐ฐ๐ฐ๐ฐ๐ฐ๐ฐ๐ฐ๐ฐ๐ฐ๐ฐ๐ฐ๐ฐ๐ฐ๐ฐ๐ฐ๐ฐ๐ฐ
์ ์ง์ง ๋๋ฐ์ด๋ค... ๊ทผ๋์ ๋ดค๋ ์๋ฃ ์ค์ ์ต๊ณ ์ธ ๊ฑฐ ๊ฐ์,,, ์ด๊ฑฐ ๊ทธ๋ฅ ๊ณผ์ ์ฃผ์ฐจ๋ณ๋ก ๊ฐ์ ์ฐ์ด์ฃผ์๋ฉด ์๋๋์? |
๋ค๋ค ์ํ์๋ฉด์ ๊ฒธ์๊น์ง ๊ฐ์ถ์ ๋ถ๋ค์ด๋ค์.. ์ ๋ ๋ง์ด ๋ฐฐ์ฐ๊ฒ ์ต๋๋ค...! @Taehyeon-Kim @YoonAh-dev |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
์ฝ๋ ๋ณด๊ณ ๋ง์ด ๋ฐฐ์ฐ๋ ๊ฒ๋ ์์ง๋ง
ํญ์ ์ฌ์ฉ์ ์
์ฅ์์ ๋ํ
์ผํ ๋ถ๋ถ๊น์ง ์๊ฐํ๊ณ ๊ธฐ๋ฅ ๊ตฌํํ๋ ๊ฒ ๊ฐ์์
๊ณ ๋ฐ ๋ถ๋ถ์ ๋ํด์๋ ๋ง์ด ๋ฐฐ์๋๋ค..! (์ด๋ฒ์ฃผ placeholder ๊ตฌํ๋ ์งฑ ๋ฉ์๋ค๊ตฌ)
์ง์ง ๋ ๋ด๊ณ ๋ด์ผ๋๋๊ฑฐ ์๋๊ฐ..๐ค๐ธ
์ด๋ฒ์ฃผ๋ ๊ณ ์ํ์
จ์ด์๐๐
|
||
import UIKit | ||
|
||
public class CustomTableViewListDataSource<T>: NSObject, UITableViewDataSource, UITableViewDelegate { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
VC์ extension
์ ๊ฑธ์ด์ datasource์ delegate ๋ ๋ค ์ฒ๋ฆฌํด์ฃผ๋ ๋ฐฉ์์ผ๋ก ๊ตฌํํ์ ๋
๊ตฌํํ๋ ์
์ ๊ฐ์๊ฐ ๋์ด๋๋ค๋ณด๋ ๋ฐ๋ณต๋๋ ์ฝ๋๊ฐ ๋๋ฌด ๋ง์์ ธ์
์ด๋ป๊ฒ ์ค์ฌ์ค ์ ์์์ง ๊ณ ๋ฏผ์ด์๋๋ฐ ์ด๋ ๊ฒ ํด๋์ค๋ฅผ ๋ถ๋ฆฌํด์ ์ฐ๋ ๋ฐฉ๋ฒ์ด ์์๋ค์ฌ..!๐๐ป
ํน์ ์๊ธฐ์ T๊ฐ ์๋ฏธํ๋๊ฒ ๋ญ์ง ์ค๋ช ํด์ฃผ์ค ์ ์์๊น์ฌ..??
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
๋์ค์ ํต์ ํ ๋ T ์๊ฑฐ ๋ง์ด ๋ณด๊ฒ๋ ํ ๋ฐ, T๋ Generic type ์ด๋ผ๊ณ ํด์ ์ง๊ธ ๋น์ฅ ํ์ ์์ฒด๋ฅผ ๋ชจ๋ฅผ๋ ! ์ฌ์ฉํ๋ ์์์ ๋๋ค. ๋์ค์ Int๊ฐ ๋ค์ด์ค๋ฉด T ๋ Int๊ฐ ๋๊ณ ... String์ด ๋ค์ด์ค๋ฉด T๋ Stringํ์ด ๋๊ณ ... Swift๊ฐ ๊ฐ์ง๊ณ ์๋ ๊ฐ๋ ฅํ ์์์ค์ ์ ๋ค๋ฆญ์ด ์์๊ฑฐ์์!! ๋์ค์ ํต์ ํ ๋ ๋ง์ด ์ฐ๊ฒ ๋ ํ ๋ฐ ํ์ํ๋ฉด ํ์ฉ ๋ฐฉ๋ฒ์ด๋ ๋ชจํ๊ฐ์๊ฑฐ ๊ฐ๋จํ ๋ณด์ฌ๋๋ฆฌ๊ฒ ์ด๋๋ค!!! @jane1choi
|
||
private var lastPosY :CGFloat = 0 | ||
private let dummyVideoData = SubscribeDataModel.Video.loadDummyList() | ||
private var currentDataSource: (UITableViewDataSource & UITableViewDelegate)? { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
์ง์ง didSet ํ์ฉ ์ํ์ ..๐๐ป
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
๊ทธ 3.5์ฐจ ์ธ๋ฏธ๋๋ฅผ ๋น์ํ <๋, ์ก์งํ์ ์ด๋ป๊ฒ ์ฝ๋๋ฅผ ์งฐ๋๊ฐ?> ๊ฐ์ฐ ๊ธฐ๋ค๋ฆฌ๊ณ ์์ต๋๋ค.
pod 'SwiftyJSON', '~> 4.0' | ||
pod 'RxSwift', '6.2.0' | ||
pod 'RxCocoa', '6.2.0' | ||
pod 'SkeletonView' | ||
pod 'ListPlaceholder' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
๋ค์ฑ๋ก์ด ๋ผ์ด๋ธ๋ฌ๋ฆฌ๋ค์ด๋ค์..
protocol UITableViewRegisterable { | ||
|
||
static var isFromNib: Bool { get } | ||
static func register(target: UITableView) | ||
} | ||
|
||
extension UITableViewRegisterable where Self: UITableViewCell { | ||
static func register(target: UITableView) { | ||
if self.isFromNib { | ||
target.register(UINib(nibName: Self.className, bundle: nil), forCellReuseIdentifier: Self.className) | ||
} else { | ||
target.register(Self.self, forCellReuseIdentifier: Self.className) | ||
} | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ํน์ ์ด๊ฒ ์ค๋ง POP ์ธ๊ฐ์??
UITableViewRegisterable ํ๋กํ ์ฝ์ ํ์ฅํด์ ๋ด๋ถ์ ํจ์๋ฅผ ๊ตฌํํ ๊ฒ์ธ๊ฐ...
๋ง๋์..?
์ค๋ช
์ ....
extension UICollectionViewCell { | ||
|
||
static var className: String { | ||
NSStringFromClass(self.classForCoder()).components(separatedBy: ".").last! | ||
} | ||
|
||
var className: String { | ||
NSStringFromClass(self.classForCoder).components(separatedBy: ".").last! | ||
} | ||
} | ||
|
||
|
||
|
||
extension UITableViewCell { | ||
extension UIView { | ||
|
||
static var className: String { | ||
NSStringFromClass(self.classForCoder()).components(separatedBy: ".").last! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
์ด๋ ๊ฒ UICollectionCell๊ณผ UITableViewCell์ ์ง์ฐ๊ณ UIView๋ฅผ ์ผ๋ค๋ ๊ฒ์
UIView์ ์ 2๊ฐ๊ฐ ๋ค ์ํ๋ค๋ ๊ฑฐ๊ฒ ์ง? ์.. ์์ผ ๋ค์ ๊นจ๋ซ๊ณ ๊ฐ๋ค.
๊ทธ๋ฆฌ๊ณ ์ ๋ง ์ด๊ฒ๋ ์ฝ์ฅ ํด๊ฐ๋ค.
๋๋ถ์ด ์บ์น๋ฏธ ๋ํ๋ก ๊ฐ์ฌ์ ์ธ์ฌ๋ฅผ ์ ํ ๊ฒ.
๊ทธ๋ฆฌ๊ณ ์ ๊ธฐํ๋ค ์ด๋ฐ ๊ฑฐ๋ ๋๋์ฒด ์ด๋์ ๊ณต๋ถํ๋ ๊ฑธ๊น? ๋ ์์ ๊ณต๋ถํด๋ณด๊ณ ์ถ๋ค..
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
์ญ์ ์บ์น๋ฏธ ๋ํ๋ต๊ฒ ์บ์น๊ฐ ๋น ๋ฅด์๋ค์ฌ... ์ฐ๋ฆฌ๊ฐ ๋ณด๋ ๋๋ถ๋ถ์ ์์๋ค์ด UIView๋ฅผ ์์๋ฐ๊ธฐ ๋๋ฌธ์,์ ๋ ๊ฒ UIView ํ๋๋ง Extension ๊ฑธ์ด์ค๋ ๋ค ์ฌ์ฉ์ด ๊ฐ๋ฅํ๋๋ผ๊ตฌ์!!
Video(thumbnailImage: ImageLiterals.Subscribe.Video.thumbnail, | ||
idx: 105, | ||
title: "8์ฐจ iOS ์ธ๋ฏธ๋ : 8์ฐจ ์ธ๋ฏธ๋ ์์ ํด๊ฐํ์์ฃ ! ์ ํฐ๊ฐ์!", | ||
url: "https://www.youtube.com/", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
์ง์ง ๋งํฌ๊น์ง ๊ฑธ์๋ค๋.. + ์ ํฐ ์ด๋ ๊ธฐ๋ํฉ๋๋ค.
sorted๊น์ง ํ์
จ๋ค์..์..
์ด ๋ฐ์ดํฐ๋ชจ๋ธ ์ด๊ฑฐ๋ ์จ๋จน๊ณ ์ถ์ด๋ ๋ชจ๋ฅด๊ฒ ๋ค.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
์ ํฐ๊ฐ๊ณ ์ถ๋ค์ ^^ ์ง์ง
// | ||
|
||
import Foundation | ||
public func calculatePastTime(date : String) -> String |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
์ง์ง๋ก..? ์ง์ง๋ก ์ด๊ฒ๊น์ง ๊ตฌํํ์ จ๋ค๊ตฌ์? ์.. ์ ๋ง..
override func prepareForReuse() { | ||
thumbnailImageView.image = UIImage() | ||
userIconImageView.image = UIImage() | ||
titleLabel.text?.removeAll() | ||
subtitleLabel.text?.removeAll() | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
์๊ฑฐ ํด์ค ์ด์ ์ข ๋ถํ๋๋ ค์. ์ค์น๋
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
๋ฐ์ดํฐ ๊ณ์ ์์ฌ์ cell ์ฌ์ฌ์ฉ๋์ด์ ์๋์น ์์ ๋ด์ฉ ๋ณด์ด๋ ๊ฒฝ์ฐ๊ฐ ์์ด์ ์ ๋ ๊ฒ ์ฒ๋ฆฌํด๋ฟ์ด๋ค!
๊ทธ ๋งค์ฃผ ์ฉ์ค์ฐจ ์ธ๋ฏธ๋๊ฐ ํ์ํ ๊ฑฐ ๊ฐ์๋ฐ ์ด๋ ๋งค์ผ๊ฒ ๋ค์ฌ,, |
์ธ์ ๋... ํ์ํ๋ค๋ฉด... ์ ๋ฅผ ์จ๋จน์ผ์ธ์... |
# ๋ณธ๋ฌธ์ ์์ ์์ฑ ######## ๋ณธ๋ฌธ์ ํ ์ค์ ์ต๋ 72 ๊ธ์๊น์ง๋ง ์ ๋ ฅ ########################### -> | # ๊ผฌ๋ฆฟ๋ง์ ์๋์ ์์ฑ: ex) #์ด์ ๋ฒํธ # --- COMMIT END --- # <ํ์ > ๋ฆฌ์คํธ # feat sparkles : ๊ธฐ๋ฅ(์๋ก์ด ๊ธฐ๋ฅ) # fix beetle : ๋ฒ๊ทธ(๋ฒ๊ทธ ์์ ) # refactor hammer : refacetor ๋ฆฌํฉํ ๋ง # style art : ์คํ์ผ( ์ฝ๋ ํ์ ๋ณ๊ฒฝ, ๋ก์ง ๋ณ๊ฒฝ ์์) # doc pencil : ๋ฌธ์(๋ฌธ์ ์ถ๊ฐ, ์์ , ์ญ์ ) # test white_check_mark : ํ ์คํธ ์ฝ๋ ์ถ๊ฐ # chore moyai : ๊ธฐํ ๋ณ๊ฒฝ์ฌํญ # ------------------ # ์ ๋ชฉ ์ฒซ ๊ธ์๋ฅผ ๋๋ฌธ์๋ก # ์ ๋ชฉ์ ๋ช ๋ น๋ฌธ์ผ๋ก # ์ ๋ชฉ ๋์ ๋ง์นจํ(.) ๊ธ์ง # ์ ๋ชฉ๊ณผ ๋ณธ๋ฌธ์ ํ ์ค ๋์ ๋ถ๋ฆฌํ๊ธฐ # ๋ณธ๋ฌธ์ "์ด๋ป๊ฒ" ๋ณด๋ค "๋ฌด์์", "์"๋ฅผ ์ค๋ช ํ๋ค. # ๋ณธ๋ฌธ์ ์ฌ๋ฌ์ค์ ๋ฉ์์ง๋ฅผ ์์ฑํ ๋ "-"๋ก ๊ตฌ๋ถ # ------------------
๐ ๊ด๋ จ ์ด์
#10 3์ฐจ ๊ณผ์ PR์ ๋๋ค.
๐ PR Point
(๊ตฌ๋์์)
์ด๋ฒ ๊ณผ์ ์์ ๊ฐ์ฅ ์ค์ ์ ์ผ๋ก ๊ตฌํํ ๋ถ๋ถ์
- UITableViewDelegate,Datasource ํด๋์ค ๋ถ๋ฆฌํ๊ธฐ :
๊ธฐ์กด VC์์ TableViewDelegate,DataSource์ ์ง๋์น๊ฒ ๊ด๋ฆฌ๋ฅผ ๋ง์ด ํ๊ณ ์๋๊ฒ ๊ฐ์์
๋ฐ๋ก Delegate,Datasource๋ฅผ NSObject ํด๋์ค๋ก ๋ถ๋ฆฌํด์ ์ฌ์ฉํ๊ณ ์์ต๋๋ค!
๋ค๋ฅธ VC์์ ์๋ก์ด TableVIew๋ฅผ ๋ง๋ค๋๋ผ๋ Custom TableViewDataSource๋ฅผ ํ์ฉํด, ํ ์ด๋ธ๋ทฐ ๊ธฐ์กด๋ณด๋ค ๊ฐ๋จํ๊ฒ ์ ์ ๋น ๋ฅด๊ฒ ์ฐ์ด๋ผ ์ ์์ต๋๋ค!!
-์คํฌ๋กค ์ธํฐ๋ ์ ์ฒ๋ฆฌ :
์์์ Delegate ํด๋์ค ๋ถ๋ฆฌํ๊ฑฐ์์ scroll๋ ๊ฒ์ ํด๋ก์ ๋ก ๋ฐ์์์ VC์์ ๊ฐ๋จํ๊ฒ๋ง ์ฒ๋ฆฌํ๋๋ฐ..!
์ค์ ์ ํฌ๋ธ๋ณด๋ค๋ ์กฐ๊ธ ๋น ์ง ๋ถ๋ถ์ด ์์ด์ ๊ฐ์ํ๊ณ ๋ด์ฃผ์๋ฉด ๊ฐ์ฌํ๊ฒ ์ต๋๋ค.. ํ๋์ฝ๋ฉ๋ ์ด์ง ์ข ์์ฌ์์ด์..
๊ตฌ์ฑ์์ฒด๋
(๋ค๋น๊ฒ์ด์ ๋ฐ)
(์ ํฌ๋ฒ View)
(ํํฐ View)
(Table View) ํํ๋ก ๊ตฌ์ฑํด๋๊ณ , Scroll ํ ๋๋ง๋ค - ๋ ์ด์์์ ์กฐ์ ํ๋ ์์ผ๋ก ์ฒ๋ฆฌํ๊ณ ์์ต๋๋ค!
๋ ์ด์์ ์ค์ด๋ฌ๊ณผ ๋์์ ๋ค๋น๊ฒ์ด์ ๋ฐ์ ์๋ ์์ด์ฝ ๋ฐ ๋ก๊ณ ์ ๋ํ alpha๊ฐ๋ ํจ๊ป ์กฐ์ ํ๊ณ ์์ด์!
๊ทธ Youtuber/Filter๋ถ๋ถ์ ์ผ๋ฐ TableView์ ํฌํจํ์ง ์์ ์ด์ ๋,
์ค์ ์ ํฌ๋ธ์์ ๋น๋์ค ์ปจํ ์ด๋ ์์ RefreshControl ์ ๋ฃ๋๊ฒ์ ๋ณด๊ณ , ๋น๋์ค ์์ญํ๊ณ ์๋จ๋ฐํ๊ณ ๋ถ๋ฆฌํ๋๊ฒ ํธํ ๊ฒ ๊ฐ์์ ๋ถ๋ฆฌ์์ผ๋จ์ด๋๋ค!!!
-PlaceHolder์ถ๊ฐ :
Placeholder๋ฅผ ๋น๋์ค ๋์ฐ๋ ๋ชฉ๋ก์๋ค๊ฐ 2.5์ด์ ๋ ๋ณด์ฌ์ฃผ๋ ํํ๋ก ํ์ต๋๋ค!
์ดํ ์๋ฒ ๋ถ์ผ ๊ฒฝ์ฐ์ ์๋ฒํ๊ณ ํจ๊ป ์์ ํ๊ฒ ์ต๋๋ค..!
RefreshControl์ ๋ํ ์ก์ ๋ ๋์ค์ ์ฒ๋ฆฌํ๊ฒ ์ต๋๋ค!
๐ ์ฐธ๊ณ ์ฌํญ
์ง์ ์ฌํญ์ด๋ ๊ฐ์ ์ฌํญ, ์ฌ์ํ ์ง๋ฌธ๋ ๋ง๊ตฌ๋ง๊ตฌ ๋ฌ์์ฃผ์ธ์!! ๊ฐ์ฌํฉ๋๋ค!!!