
싱글톤패턴이란. 클래스의 인스턴스(객체)를 하나만 만들어서 쓰는 패턴 Singleton pattern에 대해 생성방법, 정의, 쓰임 순으로 정리해나가겠습니다. 1. 싱글톤 패턴 생성 방법. 우선 class를 생성하고 내부에는, class에 접근할 수 있도록 하는 class 자체 상수를 static 으로 선언 해줍니다. static을 붙이면 'shared' 는 상속이 안되며 인스턴스화 하여 여러개 생성 되지 않도록 해줍니다. ( static 을 잘 모르신다면 https://ggasoon2.tistory.com/2#typeProperty 이 글의 '타입 프로퍼티'를 참고 해주세요.^^ ) 그리고 private init() 생성자를 private으로 제한하여 외부에서 인스턴스를 생성하지 못하도록 하여, 'Si..
iOS & swift
2021. 7. 20. 02:15
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- swift urlsession refactoring
- swift urlsession network module
- swift excel read
- swift filemanager get excel
- focus timer 어플
- swift network module
- llm csv
- swift network 공통화
- llm pdf rag
- filemanager excel read
- swift urlcomponent encode
- readysay
- chatgpt rag llm
- rag 기반 llm
- swift urlsession module
- swift urlsession 공통화
- 레디세이
- swift get excel
- 엔디소프트 레이세이
- swift 엑셀 가져오기
- swift 엑셀 읽기
- rag 기반 llm 챗봇
- swift queryitem encode
- swift network refactoring
- swift 네트워크 모듈화
- rag llm pdf
- swift filemanager excel
- 공부 타이머 어플
- 레디세이 어플
- swift 자간
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
글 보관함