问题 I am sending local notifications to my users, and I want to show the relevant title on the notification settings button. If local notifications are off, this title should be "Notifications: off", and if local notifications are on, this title should be something like "Preferences". Right now I'm checking this in viewDidLoad and viewDidAppear, and it works. if UIApplication.sharedApplication().currentUserNotificationSettings()?.types.rawValue == 0 { //the first title } else { //the second title