IOS system Message notification, ios Message notification

Source: Internet
Author: User

IOS system Message notification, ios Message notification
I. keyboard
1. UIKeyboardWillShowNotification-the keyboard to be displayed
2. UIKeyboardDidShowNotification-display keyboard
3. UIKeyboardWillHideNotification-to hide the keyboard
4. UIKeyboardDidHideNotification-the keyboard is hidden
5. UIKeyboardWillChangeFrameNotification-the frame to be changed on the keyboard
6. UIKeyboardDidChangeFrameNotification-the frame has been changed on the keyboard.

Ii. Window
1. UIWindowDidBecomeVisibleNotification-visible in the window
2. UIWindowDidBecomeHiddenNotification-hide the window
3. UIWindowDidBecomeKeyNotification
4. UIWindowDidResignKeyNotification
3. Program message
1. UIApplicationDidBecomeActiveNotification-the program is activated from the background
2. UIApplicationDidChangeStatusBarFrameNotification-the status bar frame is changed.
3. UIApplicationDidChangeStatusBarOrientationNotification-changed the direction of the status bar
4. UIApplicationDidEnterBackgroundNotification-go to the background
5. UIApplicationDidFinishLaunchingNotification-the Program has been loaded.
6. UIApplicationDidReceiveMemoryWarningNotification-memory warning
7. UIApplicationProtectedDataDidBecomeAvailable
8. UIApplicationProtectedDataWillBecomeUnavailable
9. UIApplicationSignificantTimeChangeNotification important time changes (starting from the new day or changing the time zone)
10. UIApplicationWillChangeStatusBarOrientationNotification-the status bar will be changed
11. UIApplicationWillChangeStatusBarFrameNotification-frame to be changed in the status bar
12. UIApplicationWillEnterForegroundNotification
13. UIApplicationWillResignActiveNotification
14. UIApplicationWillTerminateNotification

Iv. Battery, direction, sensor
1. UIDeviceBatteryLevelDidChangeNotification // battery power
2. UIDeviceBatteryStateDidChangeNotification // Battery status
3. UIDeviceOrientationDidChangeNotification // direction
4. UIDeviceProximityStateDidChangeNotification // close-range sensor

V. Audio and Video
1. MPMediaLibraryDidChangeNotification
2. MPMusicPlayerControllerPlaybackStateDidChangeNotification
3. MPMusicPlayerControllerNowPlayingItemDidChangeNotification
4. MPMusicPlayerControllerVolumeDidChangeNotification

Vi. Others
1. NSUserDefaultsDidChangeNotification user default settings change
2 NSCurrentLocaleDidChangeNotification localization language changes

Copyright Disclaimer: This article is an original article by the blogger and cannot be reproduced without the permission of the blogger.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.