Notice
Recent Posts
Recent Comments
Link
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 |
Tags
- GCD
- IOS
- 포켓볼
- UIView
- Bitcode
- UITableView
- 앱스토어
- swift3
- push
- 페이백
- 스마트폰
- Xcode
- Check
- 공략
- Example
- setting
- 얻는법
- LG유플러스
- 신도림 테크노마트
- 신도림
- 아이폰7
- afterdelay
- 보라카이
- 해몽
- 포켓몬 GO
- simulator
- swift
- loop
- 샘플
- error
Archives
- Today
- Total
목록JSON (1)
도래울
swift3 json 파일 읽기
data에서 json은 SwiftyJSon 라이브러리를 이용. filename : test.json if let path = Bundle.main.path(forResource: "test", ofType: "json") { do { let data = try? Data(contentsOf: URL(fileURLWithPath: path), options: NSData.ReadingOptions.mappedIfSafe) let jsonObj = JSON(data: data!) if jsonObj != JSON.null { print(jsonObj.arrayObject) } else { print("could not get json from file, make sure that file contains v..
카테고리 없음
2017. 7. 12. 16:24