일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- simulator
- 샘플
- IOS
- GCD
- swift
- 공략
- Example
- UIView
- Bitcode
- Check
- push
- loop
- LG유플러스
- setting
- 아이폰7
- Xcode
- 보라카이
- afterdelay
- swift3
- UITableView
- 얻는법
- 스마트폰
- 신도림
- error
- 페이백
- 포켓볼
- 신도림 테크노마트
- 해몽
- 앱스토어
- 포켓몬 GO
- Today
- Total
목록swift3 (2)
도래울
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..
print("completionHandler시작") self.callBackTest(param1: "param1") {retStr in print("completionHandler끝 ret : \(retStr)") } print("completionHandler비동기") private func callBackTest(param1 :String ,completionHandler:@escaping (_ ret : String) -> Void) { DispatchQueue.global(qos: .userInitiated).async { print(param1) for i in 0..