iOS 获取随机UUID

释放双眼,带上耳机,听听看~!
NSString *result;
    if([[[UIDevice currentDevice] systemVersion] floatValue] > 6.0)
    {
       result = [[NSUUID UUID] UUIDString];
    }
    else
    {
        CFUUIDRef uuidRef = CFUUIDCreate(NULL);
        CFStringRef uuid = CFUUIDCreateString(NULL, uuidRef);
        CFRelease(uuidRef);
        result = (__bridge_transfer NSString *)uuid;
    }

 

人已赞赏
iOS文章

iOS 获取collectionViewCell在屏幕中的frame

2020-2-8 18:27:47

iOS文章

iOS 去除webView底部黑色

2020-2-8 19:27:59

个人中心
购物车
优惠劵
今日签到
有新私信 私信列表
搜索