반응형
override func viewDidLoad() {
super.viewDidLoad()
NotificationCenter.default.addObserver(self, selector: #selector(onWillEnterForeground), name: UIApplication.willEnterForegroundNotification, object: nil)
...
}
@objc func onWillEnterForeground() {
if self.viewIfLoaded?.window != nil {
// TODO :
}
}
반응형
'개발 > iOS' 카테고리의 다른 글
버전분기 샘플 (0) | 2021.08.02 |
---|---|
시뮬레이터 분기 (0) | 2021.08.02 |
Firebase dynamic link (다이나믹 링크) (4/4) (0) | 2021.06.17 |
Firebase dynamic link (다이나믹 링크) (3/4) (0) | 2021.06.17 |
Firebase dynamic link (다이나믹 링크) (2/4) (0) | 2021.06.17 |