你好,歡迎來到IOS教程網

 Ios教程網 >> IOS訊息 >> 關於IOS >> iOS 系統消息通知

iOS 系統消息通知

編輯:關於IOS

一、鍵盤
1、UIKeyboardWillShowNotification-將要彈出鍵盤
2、UIKeyboardDidShowNotification-顯示鍵盤
3、UIKeyboardWillHideNotification-將要隱藏鍵盤
4、UIKeyboardDidHideNotification-鍵盤已經隱藏
5、UIKeyboardWillChangeFrameNotification-鍵盤將要改變frame
6、UIKeyboardDidChangeFrameNotification-鍵盤已經改變frame

二、窗口
1、UIWindowDidBecomeVisibleNotification-窗口可見
2、UIWindowDidBecomeHiddenNotification-窗口隱藏
3、UIWindowDidBecomeKeyNotification
4、UIWindowDidResignKeyNotification
三、程序消息
1、UIApplicationDidBecomeActiveNotification-程序從後台激活
2、UIApplicationDidChangeStatusBarFrameNotification-狀態欄frame改變
3、UIApplicationDidChangeStatusBarOrientationNotification-狀態欄方向改變
4、UIApplicationDidEnterBackgroundNotification-進入後台
5、UIApplicationDidFinishLaunchingNotification-程序加載完成
6、UIApplicationDidReceiveMemoryWarningNotification-內存警告
7、UIApplicationProtectedDataDidBecomeAvailable
8、UIApplicationProtectedDataWillBecomeUnavailable
9、UIApplicationSignificantTimeChangeNotification 重要的時間變化(新的一天開始或時區變化)
10、UIApplicationWillChangeStatusBarOrientationNotification-將要改變狀態欄方向
11、UIApplicationWillChangeStatusBarFrameNotification-將要改變狀態欄frame
12、UIApplicationWillEnterForegroundNotification
13、UIApplicationWillResignActiveNotification
14、UIApplicationWillTerminateNotification

四、電池、方向、傳感器
1、UIDeviceBatteryLevelDidChangeNotification //電池電量
2、UIDeviceBatteryStateDidChangeNotification //電池狀態
3、UIDeviceOrientationDidChangeNotification //方向
4、UIDeviceProximityStateDidChangeNotification //近距離傳感器

五、音視頻
1、MPMediaLibraryDidChangeNotification
2、MPMusicPlayerControllerPlaybackStateDidChangeNotification
3、MPMusicPlayerControllerNowPlayingItemDidChangeNotification
4、MPMusicPlayerControllerVolumeDidChangeNotification

六、其他
1、NSUserDefaultsDidChangeNotification 用戶默認設置變化
2 NSCurrentLocaleDidChangeNotification 本地化語言變化

 

  1. 上一頁:
  2. 下一頁:
蘋果刷機越獄教程| IOS教程問題解答| IOS技巧綜合| IOS7技巧| IOS8教程
Copyright © Ios教程網 All Rights Reserved