iOS에 (예 : 사진 액세스 요청) 개인 정보 경고가 표시되면 알림이 표시되고 앱이 비활성 상태가되어 UIApplicationWillResignActiveNotification
이 호출됩니다. 그런 다음 알림이 선택되고 앱이 다시 시작되면 UIApplicationDidBecomeActiveNotification
이 호출됩니다. 예를 들어 registerUserNotificationSettings
알림 알림이 표시 될 때 다른 알림이 표시되는 경우도 마찬가지입니다. 그러나'UIAlertView` 또는'UIAlertController`가 표시되고 닫힐 때 앱 상태 결정
,가 UIAlertView
또는 UIAlertController
, UIApplicationWillResignActiveNotification
및 UIApplicationDidBecomeActiveNotification
가 호출되지 호출 할 때 경고에 응용 프로그램에서 포커스가 변경.
질문 :
을 무슨 일이야?
UIAlertView
또는UIAlertController
을 표시하고 닫을 때 응용 프로그램의 비활성 및 활성 상태에 대해 트리거 된 동등한 알림은 무엇입니까?
UIAlertView 또는 UIAlertController가 표시되거나 해제 될 때 일부 코드를 실행해야하는 경우 displayViewController 호출 및 UIAlertAction 호출에서 완료 핸들러를 각각 사용할 수 있습니다. – creeperspeak