Coder Social home page Coder Social logo

ios-streetcat's Introduction

๐Ÿ‘‹ Hi there

I'm Jieun Song, frontend developer

๐Ÿ“š Studying

โ˜บ๏ธ Resume

๐Ÿ‘พ zigsong.me

Hits

ios-streetcat's People

Contributors

9ummy avatar hyemmie avatar jhroh906 avatar kay1918 avatar zigsong avatar

Watchers

 avatar  avatar

ios-streetcat's Issues

user input์„ json์œผ๋กœ encode / save Data ์งˆ๋ฌธ

@withkali
(zig branch / commit message: json encode issue ์ž…๋‹ˆ๋‹ค.)
AddViewController.swift ์—์„œ, nameTextField์™€ InfoTextView๋ฅผ ํ†ตํ•ด ๋ฐ›์•„์˜จ String์„ Json ๋ฐ์ดํ„ฐ๋กœ encodingํ•˜๊ณ ์ž ํ•ฉ๋‹ˆ๋‹ค. 77์ค„์˜ finalConfirm('์ถ”๊ฐ€ํ•˜๊ธฐ' ๋ฒ„ํŠผ) ํ•จ์ˆ˜๊ฐ€ ์‹คํ–‰๋  ๋•Œencoding์„ ํ•˜๊ณ  ์‹ถ์Šต๋‹ˆ๋‹ค. 96์ค„์—์„œ๋ถ€ํ„ฐ encoding ์ฝ”๋“œ๊ฐ€ ์‹œ์ž‘๋ฉ๋‹ˆ๋‹ค.

user input์œผ๋กœ ๋ฐ›์•„์˜ฌ ๋ฐ์ดํ„ฐ(cat)๋ฅผ Cat()์˜ ์ธ์Šคํ„ด์Šค๋กœ ํ•ด์•ผํ•˜๋Š”์ง€, CatList()์˜ ์ธ์Šคํ„ด์Šค๋กœ ํ•ด์•ผํ•˜๋Š”์ง€ ์ž˜ ๋ชจ๋ฅด๊ฒ ์Šต๋‹ˆ๋‹ค. ๋‘ ๊ฐ€์ง€ ๋ชจ๋‘ ์‹œ๋„ํ•ด๋ณด์•˜๊ณ , ๊ทธ๋Ÿด ๋•Œ๋งˆ๋‹ค ์—ฌ๋Ÿฌ๊ฐ€์ง€ ์—๋Ÿฌ๊ฐ€ ๋ฐœ์ƒํ•˜์—ฌ catProfile.swift์˜ struct CatList์— init์„ ์ƒˆ๋กœ ์ถ”๊ฐ€ํ•˜๋Š” ๋“ฑ ์ˆ˜ ์ฐจ๋ก€ ๊ตฌ๊ธ€๋ง์„ ํ•ด๋ณด์•˜์ง€๋งŒ ํ•ด๊ฒฐ๋˜์ง€ ์•Š์•˜์Šต๋‹ˆ๋‹ค. ์–ด๋–ป๊ฒŒ ์ธ์Šคํ„ด์Šค๋ฅผ ์ƒ์„ฑํ•˜์—ฌ model์˜ struct ์— ๋„ฃ์–ด์ค„ ์ˆ˜ ์žˆ์„๊นŒ์š”?

์ธ์Šคํ„ด์Šค๋ฅผ ์ƒ์„ฑํ•œ ํ›„ ์ธ์ฝ”๋”ฉ์€ 98์ค„~104์ค„์ฒ˜๋Ÿผ ํ•˜๋Š” ๊ฒŒ ๋งž๋Š” ๊ฒƒ์ธ์ง€๋„ ์—ฌ์ญค๋ณด๊ณ ์‹ถ์Šต๋‹ˆ๋‹ค!

์ถ”๊ฐ€์ ์œผ๋กœ, ์ƒˆ๋กœ ๋ฐ›์•„์˜จ user input ๋ฐ์ดํ„ฐ(์ธ์Šคํ„ด์Šค)๋ฅผ cats.json์— ์ €์žฅํ•˜๊ธฐ ์œ„ํ•ด์„œ 110์ค„~119์ค„์˜ ์ฝ”๋“œ๊ฐ€ ๋งž๋Š”์ง€๋„ ์•Œ๊ณ  ์‹ถ์Šต๋‹ˆ๋‹ค! 111,112์ค„๊ณผ ๊ฐ™์€ ๋ฐฉ์‹์œผ๋กœ path๋ฅผ ์„ค์ •ํ•˜๋ฉด ์™œ ์•„๋ž˜(113์ค„)์—์„œ ์˜ค๋ฅ˜(Cannot convert value of type 'URL?' to expected argument type 'String')๊ฐ€ ๋œฐ๊นŒ์š”?

๋‹ต๋ณ€์ฃผ์‹œ๋ฉด ๊ฐ์‚ฌํ•˜๊ฒ ์Šต๋‹ˆ๋‹ค :)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.