๋ฐ์ํ
ํด๋์ค ์ ์
class Singleton {
static var sharedObject: Singleton = Singleton()
}
์ฌ์ฉ๋ฐฉ๋ฒ
Singleton.shared.getUUID()
- getUUID๋ผ๋ ํจ์๋ฅผ ์ ์ํ์ ๊ฒฝ์ฐ ์์ ๊ฐ์ด ์ฌ์ฉํจ
728x90
๋ฐ์ํ
'๐ iOS' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
[iOS/Swift] UIDevice ๋ฒ์ , UUID, ๊ธฐ๊ธฐ ์ ๋ณด ๊ฐ์ ธ์ค๊ธฐ (0) | 2023.02.04 |
---|---|
[iOS/Swift] infoDictionary ์ฑ ๋ฒ์ , ๋ฒ๋ค ์์ด๋ ๊ฐ์ ธ์ค๊ธฐ (0) | 2023.02.04 |
[iOS/Swift] UIPresentationController (0) | 2023.01.29 |
[iOS/Swift] UIViewControllerTransitioningDelegate (0) | 2023.01.29 |
[iOS/Swift] UIViewControllerAnimatedTransitioning ์ ๋ฆฌ (0) | 2023.01.29 |
๋๊ธ