iOS/설명
[iOS] 앱 terminate되게 하는 법
Sky Titan
2022. 4. 22. 20:29
728x90
앱 terminate되게 하는 법
- app이 terminate될 때 어떤 기능을 집어넣고 테스트를 해야되는 상황에서 사용 가능한 방법
info.plist에서 'Application does not run in background'를 활성화 시킨다. 그럼 앱이 백그라운드 상태로 진입하자마자 terminate되면서 종료된다.

func applicationWillTerminate(_ application: UIApplication) {
print("will terminate")
}

728x90