[iOS] ๐Ÿ‘ฉ๐Ÿปโ€๐Ÿš’ TroubleShooting - TableView์— 2๊ฐœ์˜ datasource๊ฐ€ ์ถฉ๋Œํ•˜๋ฉด ๋ฐœ์ƒํ•˜๋Š” ์ผ

Madeline๐Ÿ‘ฉ๐Ÿปโ€๐Ÿ’ปยท2024๋…„ 4์›” 8์ผ
2

iOS study

๋ชฉ๋ก ๋ณด๊ธฐ
45/61

๋‚ด๊ฐ€ ๊ตฌํ˜„ํ•˜๊ณ  ์‹ถ์—ˆ๋˜๊ฑด,
๊ฐ™์€ ๋ทฐ ์•ˆ์—์„œ ์„œ์น˜๋ฐ”๋ฅผ ํƒญํ•˜๋ฉด ์Šํ•˜๊ณ  ๋ทฐ ์ƒ๋‹จ์œผ๋กœ ์„œ์น˜๋ฐ”๊ฐ€ ์ด๋™ํ•˜๋ฉด์„œ,
์„œ์น˜๋ฐ” ํƒญํ•˜๊ธฐ ์ „์—๋Š” -> ๊ฒ€์ƒ‰ ๊ธฐ๋ก ํ…Œ์ด๋ธ”๋ทฐ
์„œ์น˜๋ฐ” ํƒญํ•œ ํ›„์—๋Š” -> ๊ฒ€์ƒ‰ ํ‚ค์›Œ๋“œ์— ๋”ฐ๋ฅธ ๊ฒ€์ƒ‰ ๊ฒฐ๊ณผ ํ…Œ์ด๋ธ”๋ทฐ
์ด๋Ÿฐ ์•ฑ์Šคํ† ์–ด ๋กœ์ง์ด๋‹ค..

๊ทธ๋Ÿฐ๋ฐ ๊ฐ™์€ ๋ทฐ์™€ ๋ทฐ๋ชจ๋ธ์—์„œ ์œ„์™€ ๊ฐ™์€ ๋ชจ๋“  ๋กœ์ง์„ ๋‹ด๋‹นํ•˜๋‹ค๋ณด๋‹ˆ,
ํ…Œ์ด๋ธ”๋ทฐ ํ•˜๋‚˜์— ๋‘ ๊ฐœ์˜ ๋ฐ์ดํ„ฐ์†Œ์Šค๊ฐ€ ์ถฉ๋Œํ•ด์„œ ์•„๋ž˜์™€ ๊ฐ™์€ ์—๋Ÿฌ๊ฐ€ ๋ฐœ์ƒํ–ˆ๋‹ค.

Thread 1: Assertion failed: This is a feature to warn you that there is already a delegate (or data source) set somewhere previously. The action you are trying to perform will clear that delegate (data source) and that means that some of your features that depend on that delegate (data source) being set will likely stop working.
If you are ok with this, try to set delegate (data source) to `nil` in front of this operation.
 This is the source object value: <UITableView: 0x108831400; frame = (0 0; 0 0); clipsToBounds

-> ํ…Œ์ด๋ธ”๋ทฐ๋ฅผ ๋”ฐ๋กœ ๋”ฐ๋กœ ๋งŒ๋“ค์–ด์„œ, enum์œผ๋กœ state๋ฅผ ๊ด€๋ฆฌํ•ด์ค€๋‹ค..

profile
๐ŸŽ Apple Developer Academy@POSTECH 2๊ธฐ, ๐Ÿ€ SeSAC iOS 4๊ธฐ

0๊ฐœ์˜ ๋Œ“๊ธ€