Cos*_*ows 1 cocoa-touch ios swift
多年来我注意到Apple在使用Swift时已经删除了诸如"NS"之类的前缀.现在,当我浏览本地通知教程时,我看到UIUserNotificationSettings已被弃用,它要求我们使用UNNotificationSettings.我明白'NS'代表下一步所以有可能是'UN'代表什么?
作为一般规则,框架内的每个项目都采用其名称前缀
UIButton -> UIKit -> User Interface
AVAudioPlayer -> AVFoundation -> Audio Video
UNNotification -> UserNotifications - > User Notification
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
129 次 |
| 最近记录: |