본문 바로가기

개발하는 뚝딱이

검색하기
개발하는 뚝딱이
프로필사진 개발자뚝딱이

  • 분류 전체보기 (86)
    • swift (19)
    • RxSwift (1)
    • iOS (13)
    • iOS 개발일지 (16)
    • 오늘의 작은 삽질 (2)
    • 컴바인 (2)
    • 웹 (14)
    • 컴퓨터 네트워크 (11)
    • 회고 (0)
    • 기타 (8)
Guestbook
Notice
Recent Posts
Recent Comments
Link
«   2025/05   »
일 월 화 수 목 금 토
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
  • subscript
  • Python
  • AJAX
  • 파이썬서버
  • Swift
  • 앱배포
  • 스위프트
  • Xcode
  • ios
  • 자바스크립트
  • 계산기앱
  • iOS계산기
  • JavaScript
  • DispatchGroup
  • iOS앱배포
  • 계산기앱만들기
  • iOS배포
  • 앱버전구하기
  • jQuery
  • 개발기록
  • 스프링
  • Xib
  • customclass
  • 웹
  • FileOwner
  • 맥
  • FLASK
  • 딩동말씀
  • spring
  • MainScheduler
more
Archives
Today
Total
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록삽질 (1)

개발하는 뚝딱이

[iOS] DispatchGroup leave 에러

오늘의 삽질은 소소한 것이라 다행이다! func download() { // ... let dispatchGroup = DispatchGroup() dispatchGroup.enter() downloadImage { resultImage in // do something dispatchGroup.leave() } dispatchGroup.notify(queue: .main) { // do something } // ... } func downloadImage(completion: @escaping (UIImage?) -> Void) { // do something } DispatchGroup을 사용할 때, .enter()를 호출하면 .leave()가 호출될 때까지 .notify(:)함수는 호출되지 않는다..

오늘의 작은 삽질 2021. 9. 15. 22:39
이전 Prev 1 Next 다음

Blog is powered by kakao / Designed by Tistory

티스토리툴바