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 | 29 | 30 | 31 |
Tags
- 앱스토어
- swift3
- 신도림 테크노마트
- 포켓볼
- UIView
- Example
- 얻는법
- 샘플
- Bitcode
- Xcode
- push
- 스마트폰
- 신도림
- 포켓몬 GO
- 해몽
- UITableView
- swift
- 공략
- afterdelay
- 보라카이
- simulator
- GCD
- 아이폰7
- 페이백
- Check
- LG유플러스
- setting
- IOS
- loop
- error
Archives
- Today
- Total
도래울
Swift3 Async Callback function example 본문
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..<99 {
print("completionHandler : \(i)")
}
completionHandler("retStr")
}
return
}
'개발 > iOS' 카테고리의 다른 글
| 앱스토어 앱 긴급 심사 방법 (0) | 2017.09.29 |
|---|---|
| this action could not be completed. try again. (-22421) 오류 해결 (0) | 2017.09.27 |
| 맥(xcode)에서 SVN, GIT 연결 끊기 (0) | 2017.06.15 |
| hide suggestion list above keyboard (0) | 2017.02.17 |
| [iOS] User-Agent 기본 값 바꾸기 (0) | 2017.02.15 |
Comments