본문 바로가기 메뉴 바로가기

오딩이

프로필사진
  • 글쓰기
  • 관리
  • 태그
  • 방명록
  • RSS

오딩이

검색하기 폼
  • 분류 전체보기 (21)
    • study - iOS (13)
    • study - swift (1)
    • study - RX (2)
    • study - Media Platform (1)
  • 방명록

Singleton (1)
[ios] ios에서 singleton 생성하기

ingleton 객체 생성 할 때, 어플리케이션 life cycle동안 한 번만 불릴 수 있도록 조절한다 아래와 같이 thread-safe를 위해 dispatch_once() 를 사용하자. [OBJECTIVE - C] static Manager *_sharedManagerInstance = nil; + (void) close { _sharedManagerInstance = nil; } + (Manager *)sharedManager { static dispatch_once_t predicate; dispatch_once(&predicate, ^{ _sharedManagerInstance = [[self alloc] init]; }); return _sharedManagerInstance; } [SWIFT..

study - iOS 2019. 4. 21. 23:07
이전 1 다음
이전 다음
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
TAG
  • ios #DRM #Media #codec #swift #audio #fairplay #widevine #playready
  • iBeacon
  • 세계시간
  • Instance
  • ADID
  • DeviceID
  • GAID
  • SVG
  • Swift
  • Singleton
  • 카플레이
  • iOS #앱개발
  • CarPlay
  • UDID
  • 반응형프로그래밍
  • 앱개발
  • ios
  • 파일변환
  • Beacon
  • 비콘
  • RECO
  • iOS비콘
  • TimeZone
  • backgroundTask
  • 백그라운드
  • xcode
  • IDFA
  • uuid
  • RxSwift
  • UIPageViewController
more
«   2025/09   »
일 월 화 수 목 금 토
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
글 보관함

Blog is powered by Tistory / Designed by Tistory

티스토리툴바