let infoDictionary = Bundle.main.infoDictionary!
let appversion = infoDictionary["CFBundleShortVersionString"] as! String //获取app的版本号
let deviceId = UIDevice.current.identifierForVendor?.description ?? "" //可以作为标识设备的唯一编号
原文地址:https://www.cnblogs.com/rchao/p/11739872.html
时间: 2024-10-02 03:05:11