UIDevice-DisplayName:返回任何iOS设备的友好名称

时间:2024-06-11 09:12:29
【文件属性】:

文件名称:UIDevice-DisplayName:返回任何iOS设备的友好名称

文件大小:11KB

文件格式:ZIP

更新时间:2024-06-11 09:12:29

Swift

UIDevice-DisplayName displayName()返回iOS设备的友好名称,其中不包括特定的类型信息(即“ iPhone X”) displayName(includeType: true)返回iOS设备的友好名称,其中还包括设备类型(例如“ iPhone X(GSM)”) 执照 UIDevice-DisplayName在MIT许可下可用。 有关更多信息,请参见LICENSE文件。 用法 NSLog ( " Device Display Name: %@ " , UIDevice. current . displayName ()) NSLog ( " Device Display Name With Type: %@ " , UIDevice. current . displayName ( includeType : true ))


【文件预览】:
UIDevice-DisplayName-master
----.gitignore(53B)
----Package.swift(802B)
----README.md(569B)
----UIDevice-DisplayName.podspec(890B)
----Resources()
--------UIDevice-DisplayName()
----Sources()
--------UIDevice-DisplayName()
----LICENSE(1KB)
----Tests()
--------LinuxMain.swift(142B)
--------UIDevice-DisplayNameTests()

网友评论