Laurence Wingo
Laurence Wingo

Reputation: 3952

What does the 'UN' stand for in UNNotification?

I noticed over the years that Apple has dropped prefixes such as 'NS' when using Swift. Now as I'm going through a local notifications tutorial, I see that UIUserNotificationSettings has been deprecated and it asks that we use UNNotificationSettings instead. I understand that 'NS' stood for Next Step so is there a correlation possibly that 'UN' stands for something?

Upvotes: 3

Views: 448

Answers (2)

Shehata Gamal
Shehata Gamal

Reputation: 100503

As a general rule every item inside a framework takes it's name prefix

UIButton -> UIKit -> User Interface

AVAudioPlayer -> AVFoundation -> Audio Video

UNNotification -> UserNotifications - > User Notification 

Upvotes: 5

rmaddy
rmaddy

Reputation: 318794

Classes such as UNNotificationSettings and other UNNotification... classes are in the UserNotifications framework. So it seems the "UN" is for User Notifications.

Upvotes: 8

Related Questions