![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
其他 (Others)
__zhangheng
这个作者很懒,什么都没留下…
展开
-
Xcode 如果swift3.0过渡到swift4.0或者更高
第一步:Project ► (Select Your Project Target) ► Build Settings ► (Type 'swift' in Searchbar) Swift Compiler Language ► Swift Language Version ► Click on Language list to open it第二步:Xcode -> Edit -> Convert -> To Current Swift Syntax......原创 2022-04-14 10:15:51 · 2644 阅读 · 0 评论 -
获取不变的uuid
获取UUID的方法有很多,但是都会因为各种原因改变/** 卸载应用重新安装后会不一致*/+ (NSString *)getUUID{ CFUUIDRef uuid = CFUUIDCreate(NULL); NSString *UUID = (__bridge_transfer NSString *)CFUUIDCreateString(NULL, uuid); ...原创 2019-05-27 10:38:26 · 1260 阅读 · 0 评论 -
app权限开启
//检查是否开启相册 class func checkPhotoLibraryPermission() -> Bool{ if #available(iOS 9.0, *){ // iOS 9 及其以上系统运行 let status = PHPhotoLibrary.authorizationStatus() swi...转载 2019-07-25 10:43:37 · 218 阅读 · 0 评论