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

TIL_2019_02

|

2019.02.05


            let branchResponse = response.result.value

            if response.result.isSuccess {
                print(response.result.value)
                print(response.result.value?[0].branchName)
                print(response.result.value?[0].latitude)
            }

2019.02.07

  • Message from debugger: Terminated due to signal 9
    • ์—ก ์‹คํ–‰์ค‘์— ์‹œ์Šคํ…œ์„ค์ •์— ๋“ค์–ด๊ฐ€์„œ ์•ฑ์— ๋Œ€ํ•œ ์„ค์ •์„ ๋ฐ”๊พธ๋ฉด(ex. ์นด๋ฉ”๋ผ ์„ค์ •, ์•Œ๋ฆผ ์„ค์ • ๋“ฑ๋“ฑ..) ์•ฑ์ด terminated๋˜์–ด๋ฒ„๋ฆฐ๋‹ค.
    • ์•ฑ ์„ค์ •์„ ๋ฐ”๊พธ๋ฉด ์„ค์ •์— ๋”ฐ๋ผ ์•ฑ์ด ๋‹ค๋ฅด๊ฒŒ ๋™์ž‘ํ•ด์•ผํ•˜๋‹ˆ ์‹œ์Šคํ…œ์—์„œ ์•ฑ ๊ตฌ๋™์„ ์ค‘๋‹จ์‹œ์ผœ๋ฒ„๋ฆฌ๋‚˜๋ณด๋‹ค. ์ด๊ฑด xcode์— ํฐ์„ ์ง์ ‘ ์—ฐ๊ฒฐํ•ด์„œ ํ™•์ธํ•ด๋ณผ์ˆ˜๋ฐ–์— ์—†์œผ๋‹ˆ ์‹ค์ œ ์•ฑ์Šคํ† ์–ด์—์„œ ๊ตฌ๋งค/์„ค์น˜๋œ ์•ฑ๋„ ์ด๋ ‡๊ฒŒ ์ฒ˜๋ฆฌ๋˜๋Š”์ง€๋Š” ๋” ์•Œ์•„๋ด์•ผํ•จ.

2019.02.20

  • @IBOutlet weak var
    • xib์—์„œ ๋ฉ”์ธ ๋ทฐ ํŒŒ์ผ?์ด ์•„๋‹Œ ๋”ฐ๋กœ ๋–จ์–ด์ ธ์žˆ๋Š” ๋ทฐ ์ค‘์— ์žˆ๋Š” ๋ทฐ๋ฅผ ๊ฐ€์ ธ์˜ฌ๋•Œ weak์„ ์“ฐ๋ฉด ์‹œ์ ์— ๋”ฐ๋ผ nil์ธ ๊ฒฝ์šฐ๊ฐ€ ์žˆ๊ณ  ์•„๋‹Œ๊ฒฝ์šฐ๊ฐ€ ์žˆ์Œ.
    • ์˜๋ฌธ๋„ ๋ชจ๋ฅด๊ณ  nil๋˜์–ด๋ฒ„๋ฆผ;
    • ์ด์œ ๊ฐ€ ๋ญ˜๊นŒ
    • ์Šคํ† ๋ฆฌ๋ณด๋“œ์—์„œ ๋ทฐ๋ฅผ ๋ถˆ๋Ÿฌ์˜ค๋Š”๊ฒƒ๊ณผ ์•„๋‹Œ ๊ฒฝ์šฐ์˜ ์ฐจ์ดโ€ฆ?

2019.02.27

  • ์Šคํฌ๋กค๋ทฐ offset๊ณผ inset
  • xib์—์„œ ์˜คํ† ๋ ˆ์ด์•„์›ƒ์„ ์ค€ ๋ทฐ์— ์ฝ”๋“œ๋กœ frame์„ ์ค„๋•Œ ์šฐ์„ ์„ฑ

Comments