swift - Swift 3 中的 NSCurrentLocaleDidChangeNotification?

标签 swift swift3

NSCurrentLocaleDidChangeNotificationNotification.Name 等效项是什么?

最佳答案

根据NSLocale reference

class let currentLocaleDidChangeNotification: NSNotification.Name
// Notification that indicates that the user’s locale changed.

您可以将其用作

let notification = NSLocale.currentLocaleDidChangeNotification

关于swift - Swift 3 中的 NSCurrentLocaleDidChangeNotification?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39566667/

相关文章:

swift - 从屏幕上的像素准确获取颜色并转换其颜色空间

swift - 如何添加库并使用 ELCImagePickerController 在 swift 3 ios 10 中选择多个图像

ios - 电话调用 - 使用 xCode 8.1 的 Swift 3

ios - TableView 中的不同长度单元格在滚动 Swift 时使 View 对齐

ios - 如何等待具有不同负载的多个 PromiseKit promise ?

ios - 滚动时 textView 在 vi​​ewController 中的位置

ios - 在 UIButton 上同时显示图像和标题 - Swift 3

ios - 通过设置某种标志隐藏 imageView 和 Label

ios - Realm 迁移中的访问列表属性

ios - 应用程序运行时 swift sourceApplication 不工作