iOS开发用到的系统本地通知名整理

开发时经常会用到一些不知道的系统通知,或者有需求,不知道系统有没有的通知,这里给自己做一个笔记整理、记录,希望也能帮到大家



Accounts.framework

头文件:./Headers/ACAccountStore.h

ACAccountStoreDidChangeNotification NS_AVAILABLE(NA, 5_0);


AssetsLibrary.framework

头文件:./Headers/ALAssetsLibrary.h

ALAssetsLibraryChangedNotification __OSX_AVAILABLE_STARTING(__MAC_NA,__IPHONE_4_0);


AVFoundation.framework

头文件:./Headers/AVAudioSession.h

AVAudioSessionInterruptionNotification NS_AVAILABLE_IOS(6_0);

AVAudioSessionRouteChangeNotification NS_AVAILABLE_IOS(6_0);

AVAudioSessionMediaServicesWereLostNotification NS_AVAILABLE_IOS(7_0);

AVAudioSessionMediaServicesWereResetNotification NS_AVAILABLE_IOS(6_0);

AVCaptureDeviceWasConnectedNotification NS_AVAILABLE(10_7, 4_0);

头文件:./Headers/AVCaptureDevice.h

AVCaptureDeviceWasDisconnectedNotification NS_AVAILABLE(10_7, 4_0);

AVCaptureDeviceSubjectAreaDidChangeNotification NS_AVAILABLE_IOS(5_0);

头文件:./Headers/AVCaptureInput.h

AVCaptureInputPortFormatDescriptionDidChangeNotification NS_AVAILABLE(10_7, 4_0);

头文件:./Headers/AVCaptureSession.h

AVCaptureSessionRuntimeErrorNotification NS_AVAILABLE(10_7, 4_0);

AVCaptureSessionDidStartRunningNotification NS_AVAILABLE(10_7, 4_0);

AVCaptureSessionDidStopRunningNotification NS_AVAILABLE(10_7, 4_0);

AVCaptureSessionWasInterruptedNotification NS_AVAILABLE_IOS(4_0);

AVCaptureSessionInterruptionEndedNotification NS_AVAILABLE_IOS(4_0);

头文件:./Headers/AVPlayerItem.h

AVPlayerItemTimeJumpedNotification NS_AVAILABLE(10_7, 5_0);

AVPlayerItemDidPlayToEndTimeNotification NS_AVAILABLE(10_7, 4_0);

AVPlayerItemFailedToPlayToEndTimeNotification NS_AVAILABLE(10_7, 4_3);

AVPlayerItemPlaybackStalledNotification NS_AVAILABLE(10_9, 6_0);

AVPlayerItemNewAccessLogEntryNotification NS_AVAILABLE(10_9, 6_0);

AVPlayerItemNewErrorLogEntryNotification NS_AVAILABLE(10_9, 6_0);


CoreBluetooth.framework

头文件:./Headers/CBCentralManagerConstants.h

CBConnectPeripheralOptionNotifyOnNotificationKey NS_AVAILABLE(NA, 6_0);


CoreData.framework

头文件:./Headers/NSManagedObjectContext.h

NSManagedObjectContextWillSaveNotification NS_AVAILABLE(10_5, 3_0);

NSManagedObjectContextDidSaveNotification NS_AVAILABLE(10_4, 3_0);

NSManagedObjectContextObjectsDidChangeNotification NS_AVAILABLE(10_4, 3_0);

头文件:./Headers/NSPersistentStoreCoordinator.h

NSPersistentStoreCoordinatorStoresWillChangeNotification NS_AVAILABLE(10_9, 7_0);

NSPersistentStoreCoordinatorStoresDidChangeNotification NS_AVAILABLE(10_4, 3_0);

NSPersistentStoreCoordinatorWillRemoveStoreNotification NS_AVAILABLE(10_5, 3_0);

NSPersistentStoreDidImportUbiquitousContentChangesNotification NS_AVAILABLE(10_7, 5_0);

MIDINetworkNotificationContactsDidChange __OSX_AVAILABLE_STARTING(__MAC_NA,__IPHONE_4_2);


CoreMIDI.framework

头文件:./Headers/MIDINetworkSession.h

MIDINetworkNotificationSessionDidChange __OSX_AVAILABLE_STARTING(__MAC_NA,__IPHONE_4_2);


CoreTelephony.framework

头文件:./Headers/CTTelephonyNetworkInfo.h

CTRadioAccessTechnologyDidChangeNotification __OSX_AVAILABLE_STARTING(__MAC_NA,__IPHONE_7_0);


EventKit.framework

头文件:./Headers/EKEventStore.h

EKEventStoreChangedNotification __OSX_AVAILABLE_STARTING(__MAC_10_8,__IPHONE_4_0);


ExternalAccessory.framework

头文件:./Headers/EAAccessoryManager.h

EAAccessoryDidConnectNotification __OSX_AVAILABLE_STARTING(__MAC_NA,__IPHONE_3_0);

EAAccessoryDidDisconnectNotification __OSX_AVAILABLE_STARTING(__MAC_NA,__IPHONE_3_0);


Foundation.framework

头文件:./Headers/NSBundle.h

NSBundleDidLoadNotification;

头文件:./Headers/NSCalendar.h

NSCalendarDayChangedNotification NS_AVAILABLE(10_9, __NSCALENDAR_COND_IOS_7_0);

NSSystemClockDidChangeNotification NS_AVAILABLE(10_6, 4_0);

头文件:./Headers/NSFileHandle.h

NSFileHandleReadCompletionNotification;

NSFileHandleReadToEndOfFileCompletionNotification;

NSFileHandleConnectionAcceptedNotification;

NSFileHandleDataAvailableNotification;

NSFileHandleNotificationDataItem;

NSFileHandleNotificationFileHandleItem;

NSFileHandleNotificationMonitorModes NS_DEPRECATED(10_0, 10_7, 2_0, 5_0);

头文件:./Headers/NSFileManager.h

NSUbiquityIdentityDidChangeNotification NS_AVAILABLE(10_8, 6_0);

头文件:./Headers/NSHTTPCookieStorage.h

NSHTTPCookieManagerAcceptPolicyChangedNotification;

NSHTTPCookieManagerCookiesChangedNotification;

头文件:./Headers/NSKeyValueObserving.h

NSKeyValueChangeNotificationIsPriorKey NS_AVAILABLE(10_5, 2_0);

头文件:./Headers/NSLocale.h

NSCurrentLocaleDidChangeNotification NS_AVAILABLE(10_5, 2_0);

头文件:./Headers/NSMetadata.h

NSMetadataQueryDidStartGatheringNotification NS_AVAILABLE(10_4, 5_0);

NSMetadataQueryGatheringProgressNotification NS_AVAILABLE(10_4, 5_0);

NSMetadataQueryDidFinishGatheringNotification NS_AVAILABLE(10_4, 5_0);

NSMetadataQueryDidUpdateNotification NS_AVAILABLE(10_4, 5_0);

头文件:./Headers/NSPort.h

NSPortDidBecomeInvalidNotification;

头文件:./Headers/NSThread.h

NSWillBecomeMultiThreadedNotification;

NSDidBecomeSingleThreadedNotification;

NSThreadWillExitNotification;

头文件:./Headers/NSTimeZone.h

NSSystemTimeZoneDidChangeNotification NS_AVAILABLE(10_5, 2_0);

头文件:./Headers/NSUbiquitousKeyValueStore.h

NSUbiquitousKeyValueStoreDidChangeExternallyNotification NS_AVAILABLE(10_7, 5_0);

头文件:./Headers/NSUndoManager.h

NSUndoManagerCheckpointNotification NS_AVAILABLE(10_0, 3_0);

NSUndoManagerWillUndoChangeNotification NS_AVAILABLE(10_0, 3_0);

NSUndoManagerWillRedoChangeNotification NS_AVAILABLE(10_0, 3_0);

NSUndoManagerDidUndoChangeNotification NS_AVAILABLE(10_0, 3_0);

NSUndoManagerDidRedoChangeNotification NS_AVAILABLE(10_0, 3_0);

NSUndoManagerDidOpenUndoGroupNotification NS_AVAILABLE(10_0, 3_0);

NSUndoManagerWillCloseUndoGroupNotification NS_AVAILABLE(10_0, 3_0);

NSUndoManagerDidCloseUndoGroupNotification NS_AVAILABLE(10_7, 5_0);

头文件:./Headers/NSURLCredentialStorage.h

NSURLCredentialStorageChangedNotification;

头文件:./Headers/NSUserDefaults.h

NSUserDefaultsDidChangeNotification;


GameController.framework

头文件:./Headers/GCController.h

GCControllerDidConnectNotification;

GCControllerDidDisconnectNotification;


GameKit.framework

头文件:./Headers/GKLocalPlayer.h

GKPlayerAuthenticationDidChangeNotificationName __OSX_AVAILABLE_STARTING(__MAC_10_8,__IPHONE_4_1);

头文件:./Headers/GKPlayer.h

GKPlayerDidChangeNotificationName;


MapKit.framework

头文件:./Headers/MKAnnotationView.h

MKAnnotationCalloutInfoDidChangeNotification;


MediaPlayer.framework

头文件:./Headers/MPMediaLibrary.h

MPMediaLibraryDidChangeNotification;

头文件:./Headers/MPMediaPlayback.h

MPMediaPlaybackIsPreparedToPlayDidChangeNotification NS_AVAILABLE_IOS(3_2);

头文件:./Headers/MPMoviePlayerController.h

MPMoviePlayerScalingModeDidChangeNotification;

MPMoviePlayerPlaybackDidFinishNotification;

MPMoviePlayerPlaybackStateDidChangeNotification NS_AVAILABLE_IOS(3_2);

MPMoviePlayerLoadStateDidChangeNotification NS_AVAILABLE_IOS(3_2);

MPMoviePlayerNowPlayingMovieDidChangeNotification NS_AVAILABLE_IOS(3_2);

MPMoviePlayerWillEnterFullscreenNotification NS_AVAILABLE_IOS(3_2);

MPMoviePlayerDidEnterFullscreenNotification NS_AVAILABLE_IOS(3_2);

MPMoviePlayerWillExitFullscreenNotification NS_AVAILABLE_IOS(3_2);

MPMoviePlayerDidExitFullscreenNotification NS_AVAILABLE_IOS(3_2);

MPMoviePlayerIsAirPlayVideoActiveDidChangeNotification NS_AVAILABLE_IOS(5_0);

MPMoviePlayerReadyForDisplayDidChangeNotification NS_AVAILABLE_IOS(6_0);

MPMovieMediaTypesAvailableNotification NS_AVAILABLE_IOS(3_2);

MPMovieSourceTypeAvailableNotification NS_AVAILABLE_IOS(3_2); // Posted if the movieSourceType is MPMovieSourceTypeUnknown when preparing for playback.

MPMovieDurationAvailableNotification NS_AVAILABLE_IOS(3_2);

MPMovieNaturalSizeAvailableNotification NS_AVAILABLE_IOS(3_2);

MPMoviePlayerThumbnailImageRequestDidFinishNotification NS_AVAILABLE_IOS(3_2);

MPMoviePlayerTimedMetadataUpdatedNotification NS_AVAILABLE_IOS(4_0);

MPMoviePlayerContentPreloadDidFinishNotification NS_DEPRECATED_IOS(2_0, 3_2);

MPMusicPlayerControllerPlaybackStateDidChangeNotification;

MPMusicPlayerControllerNowPlayingItemDidChangeNotification;

MPMusicPlayerControllerVolumeDidChangeNotification;

头文件:./Headers/MPVolumeView.h

MPVolumeViewWirelessRoutesAvailableDidChangeNotification NS_AVAILABLE_IOS(7_0);

MPVolumeViewWirelessRouteActiveDidChangeNotification NS_AVAILABLE_IOS(7_0);


MessageUI.framework

头文件:./Headers/MFMessageComposeViewController.h

MFMessageComposeViewControllerTextMessageAvailabilityDidChangeNotification __OSX_AVAILABLE_STARTING(__MAC_NA,__IPHONE_5_0);


NewsstandKit.framework

头文件:./Headers/NKIssue.h

NKIssueDownloadCompletedNotification;


PassKit.framework

头文件:./Headers/PKPassLibrary.h

PKPassLibraryDidChangeNotification NS_AVAILABLE_IOS(6_0);


UIKit.framework

头文件:./Headers/NSTextStorage.h

NSTextStorageWillProcessEditingNotification NS_AVAILABLE_IOS(7_0);

NSTextStorageDidProcessEditingNotification NS_AVAILABLE_IOS(7_0);

头文件:./Headers/UIAccessibility.h

UIAccessibilityMonoAudioStatusDidChangeNotification NS_AVAILABLE_IOS(5_0);

UIAccessibilityClosedCaptioningStatusDidChangeNotification NS_AVAILABLE_IOS(5_0);

UIAccessibilityInvertColorsStatusDidChangeNotification NS_AVAILABLE_IOS(6_0);

UIAccessibilityGuidedAccessStatusDidChangeNotification NS_AVAILABLE_IOS(6_0);

头文件:./Headers/UIAccessibilityConstants.h

UIAccessibilityAnnouncementDidFinishNotification NS_AVAILABLE_IOS(6_0);

头文件:./Headers/UIApplication.h

UIApplicationDidEnterBackgroundNotification NS_AVAILABLE_IOS(4_0);

UIApplicationWillEnterForegroundNotification NS_AVAILABLE_IOS(4_0);

UIApplicationDidFinishLaunchingNotification;

UIApplicationDidBecomeActiveNotification;

UIApplicationWillResignActiveNotification;

UIApplicationDidReceiveMemoryWarningNotification;

UIApplicationWillTerminateNotification;

UIApplicationSignificantTimeChangeNotification;

 UIApplicationWillChangeStatusBarOrientationNotification; // userInfo contains NSNumber with new orientation

UIApplicationDidChangeStatusBarOrientationNotification; // userInfo contains NSNumber with old orientation

UIApplicationWillChangeStatusBarFrameNotification; // userInfo contains NSValue with new frame

UIApplicationDidChangeStatusBarFrameNotification; // userInfo contains NSValue with old frame

UIApplicationBackgroundRefreshStatusDidChangeNotification NS_AVAILABLE_IOS(7_0);

UIApplicationLaunchOptionsRemoteNotificationKey NS_AVAILABLE_IOS(3_0); // userInfo contains NSDictionary with payload

UIApplicationLaunchOptionsLocalNotificationKey NS_AVAILABLE_IOS(4_0); // userInfo contains a UILocalNotification

UIContentSizeCategoryDidChangeNotification NS_AVAILABLE_IOS(7_0); // userInfo dictionary will contain new value for UIContentSizeCategoryNewValueKey

UIApplicationUserDidTakeScreenshotNotification NS_AVAILABLE_IOS(7_0);

头文件:./Headers/UIDevice.h

UIDeviceOrientationDidChangeNotification;

UIDeviceBatteryStateDidChangeNotification NS_AVAILABLE_IOS(3_0);

UIDeviceBatteryLevelDidChangeNotification NS_AVAILABLE_IOS(3_0);

UIDeviceProximityStateDidChangeNotification NS_AVAILABLE_IOS(3_0);

头文件:./Headers/UIDocument.h

UIDocumentStateChangedNotification NS_AVAILABLE_IOS(5_0);

头文件:./Headers/UILocalNotification.h

UILocalNotificationDefaultSoundName NS_AVAILABLE_IOS(4_0);

头文件:./Headers/UIMenuController.h

UIMenuControllerWillShowMenuNotification;

UIMenuControllerDidShowMenuNotification;

UIMenuControllerWillHideMenuNotification;

UIMenuControllerDidHideMenuNotification;

UIMenuControllerMenuFrameDidChangeNotification;

头文件:./Headers/UIPasteboard.h

UIPasteboardChangedNotification;

UIPasteboardRemovedNotification;

头文件:./Headers/UIScreen.h

UIScreenDidConnectNotification NS_AVAILABLE_IOS(3_2);

UIScreenDidDisconnectNotification NS_AVAILABLE_IOS(3_2);

UIScreenModeDidChangeNotification NS_AVAILABLE_IOS(3_2);

UIScreenBrightnessDidChangeNotification NS_AVAILABLE_IOS(5_0);

头文件:./Headers/UITableView.h

UITableViewSelectionDidChangeNotification;

头文件:./Headers/UITextField.h

UITextFieldTextDidBeginEditingNotification;

UITextFieldTextDidEndEditingNotification;

UITextFieldTextDidChangeNotification;

头文件:./Headers/UITextInput.h

UITextInputCurrentInputModeDidChangeNotification NS_AVAILABLE_IOS(4_2);

头文件:./Headers/UITextView.h

UITextViewTextDidBeginEditingNotification;

UITextViewTextDidChangeNotification;

UITextViewTextDidEndEditingNotification;

头文件:./Headers/UIWindow.h

UIWindowDidBecomeVisibleNotification;

UIWindowDidBecomeHiddenNotification;

UIWindowDidBecomeKeyNotification;

UIWindowDidResignKeyNotification;

UIKeyboardWillShowNotification;

UIKeyboardDidShowNotification;

UIKeyboardWillHideNotification;

UIKeyboardDidHideNotification;

UIKeyboardWillChangeFrameNotification NS_AVAILABLE_IOS(5_0);

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
  • 序言:七十年代末,一起剥皮案震惊了整个滨河市,随后出现的几起案子,更是在滨河造成了极大的恐慌,老刑警刘岩,带你破解...
    沈念sama阅读 201,784评论 5 474
  • 序言:滨河连续发生了三起死亡事件,死亡现场离奇诡异,居然都是意外死亡,警方通过查阅死者的电脑和手机,发现死者居然都...
    沈念sama阅读 84,745评论 2 378
  • 文/潘晓璐 我一进店门,熙熙楼的掌柜王于贵愁眉苦脸地迎上来,“玉大人,你说我怎么就摊上这事。” “怎么了?”我有些...
    开封第一讲书人阅读 148,702评论 0 335
  • 文/不坏的土叔 我叫张陵,是天一观的道长。 经常有香客问我,道长,这世上最难降的妖魔是什么? 我笑而不...
    开封第一讲书人阅读 54,229评论 1 272
  • 正文 为了忘掉前任,我火速办了婚礼,结果婚礼上,老公的妹妹穿的比我还像新娘。我一直安慰自己,他们只是感情好,可当我...
    茶点故事阅读 63,245评论 5 363
  • 文/花漫 我一把揭开白布。 她就那样静静地躺着,像睡着了一般。 火红的嫁衣衬着肌肤如雪。 梳的纹丝不乱的头发上,一...
    开封第一讲书人阅读 48,376评论 1 281
  • 那天,我揣着相机与录音,去河边找鬼。 笑死,一个胖子当着我的面吹牛,可吹牛的内容都是我干的。 我是一名探鬼主播,决...
    沈念sama阅读 37,798评论 3 393
  • 文/苍兰香墨 我猛地睁开眼,长吁一口气:“原来是场噩梦啊……” “哼!你这毒妇竟也来了?” 一声冷哼从身侧响起,我...
    开封第一讲书人阅读 36,471评论 0 256
  • 序言:老挝万荣一对情侣失踪,失踪者是张志新(化名)和其女友刘颖,没想到半个月后,有当地人在树林里发现了一具尸体,经...
    沈念sama阅读 40,655评论 1 295
  • 正文 独居荒郊野岭守林人离奇死亡,尸身上长有42处带血的脓包…… 初始之章·张勋 以下内容为张勋视角 年9月15日...
    茶点故事阅读 35,485评论 2 318
  • 正文 我和宋清朗相恋三年,在试婚纱的时候发现自己被绿了。 大学时的朋友给我发了我未婚夫和他白月光在一起吃饭的照片。...
    茶点故事阅读 37,535评论 1 329
  • 序言:一个原本活蹦乱跳的男人离奇死亡,死状恐怖,灵堂内的尸体忽然破棺而出,到底是诈尸还是另有隐情,我是刑警宁泽,带...
    沈念sama阅读 33,235评论 3 318
  • 正文 年R本政府宣布,位于F岛的核电站,受9级特大地震影响,放射性物质发生泄漏。R本人自食恶果不足惜,却给世界环境...
    茶点故事阅读 38,793评论 3 304
  • 文/蒙蒙 一、第九天 我趴在偏房一处隐蔽的房顶上张望。 院中可真热闹,春花似锦、人声如沸。这庄子的主人今日做“春日...
    开封第一讲书人阅读 29,863评论 0 19
  • 文/苍兰香墨 我抬头看了看天上的太阳。三九已至,却和暖如春,着一层夹袄步出监牢的瞬间,已是汗流浃背。 一阵脚步声响...
    开封第一讲书人阅读 31,096评论 1 258
  • 我被黑心中介骗来泰国打工, 没想到刚下飞机就差点儿被人妖公主榨干…… 1. 我叫王不留,地道东北人。 一个月前我还...
    沈念sama阅读 42,654评论 2 348
  • 正文 我出身青楼,却偏偏与公主长得像,于是被迫代替她去往敌国和亲。 传闻我的和亲对象是个残疾皇子,可洞房花烛夜当晚...
    茶点故事阅读 42,233评论 2 341

推荐阅读更多精彩内容