- Today
- Total
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 31 |
- swiftUI
- rxswift
- substr
- cocoapods
- NVL
- SQL
- deeplearning
- delegate
- sigmoid
- Optional
- ios
- decode
- struct
- 연산자
- Linux
- grep
- 명령어
- 딥러닝
- SWIFT
- 시각화
- tapply
- Observable
- Python
- barplot
- MVC
- ReLU
- Upper
- scheduledTimer
- trunc
- r
목록JSON (2)
iOS 개발 기록 블로그
![](http://i1.daumcdn.net/thumb/C150x150/?fname=https://blog.kakaocdn.net/dn/bAkgFr/btrFyJSGDfH/km0v4cxAbaXw4ASrbo10IK/img.png)
iOS (Swift) JSON 디코딩(Decoding) func performRequest(urlString: String) { //1. Create a URL if let url = URL(string: urlString) { //2. Create a URLSession let session = URLSession(configuration: .default) //3. Giv.. crazydeer.tistory.com 지난 글에 이어 JSON을 정리하면서 MVC 디자인 패턴으로 바꾸고 그 과정에서 Computed Properties도 이해해보자. OpenWeatherAPI 문서가 제공하는 json 예시다. 여기에 id는 날씨 상태를 말하는데 이에 따라 아이콘이 변화하도록 해볼 것이다. Weather co..
![](http://i1.daumcdn.net/thumb/C150x150/?fname=https://blog.kakaocdn.net/dn/thMxZ/btrFAis2Vao/VLJ11Upg3faarovH04Pjo1/img.png)
func performRequest(urlString: String) { //1. Create a URL if let url = URL(string: urlString) { //2. Create a URLSession let session = URLSession(configuration: .default) //3. Give URLSession a task let task = session.dataTask(with: url) { data, response, error in if error != nil { print(error!) return// 에러가 있으면 스톱 } if let safeData = data { // safeData를 String 형태로 변환 } } //4. Start the task ta..