Instance Method

applicationProtectedDataWillBecomeUnavailable:

Tells the delegate that the protected files are about to become unavailable.

Declaration

- (void)applicationProtectedDataWillBecomeUnavailable:(UIApplication *)application;

Parameters

application

Your singleton app object.

Discussion

On a device that uses content protection, protected files are stored in an encrypted form and made available only at certain times, usually when the device is unlocked. This notification lets your app know that the device is about to be locked and that any protected files it is currently accessing might become unavailable shortly.

If your app is currently accessing a protected file, you can use this method to release any references to that file. Although it is not an error to access the file while the device is locked, any attempts to do so will fail. Therefore, if your app depends on the file, you might want to take steps to avoid using that file while the device is locked.

See Also

Responding to Environment Changes

- applicationProtectedDataDidBecomeAvailable:

Tells the delegate that protected files are available now.

- applicationDidReceiveMemoryWarning:

Tells the delegate when the app receives a memory warning from the system.

- applicationSignificantTimeChange:

Tells the delegate when there is a significant change in the time.

UIApplicationProtectedDataDidBecomeAvailable

Posted when the protected files become available for your code to access.

UIApplicationProtectedDataWillBecomeUnavailable

Posted shortly before protected files are locked down and become inaccessible.

UIApplicationDidReceiveMemoryWarningNotification

Posted when the app receives a warning from the operating system about low memory availability.

UIApplicationSignificantTimeChangeNotification

Posted when there is a significant change in time, for example, change to a new day (midnight), carrier time update, and change to or from daylight savings time.