macOS, iOS
[iOS] appDelegate 사용법
SweetDev
2019. 8. 27. 21:35
let ad = UIApplication.shared.delegate as? AppDelegate
ad?.값 = 어쩌고
================================
AppDelegate가 아닌 클래스를 AppDelegate처럼 쓰려면?
1) UIResponder 상속받기
2) UIApplicationDelegate 채택
3) @UIApplicationMain 어노테이션 붙여주기