• 大小: 65KB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2021-05-29
  • 语言: 其他
  • 标签: UUIDUDID  

资源简介

UDID自从被苹果公司禁止开发者使用,UUID便成为替代品,一般使用UUID的时候,当程序被卸载重装之后,UUID一般会被改变,无法保证唯一。但使用我代码里的方法,便可以保证唯一,即使程序被卸载重装之后也仍然是卸载前的UUID。

资源截图

代码片段和文件信息

//
//  AppDelegate.m
//  UUID
//
//  Created by ThomasYang on 16/6/28.
//  Copyright © 2016年 yunzujia. All rights reserved.
//

#import “AppDelegate.h“
#import “ViewController.h“

@interface AppDelegate ()

@end

@implementation AppDelegate


- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
    
    
    return YES;
}

- (void)applicationWillResignActive:(UIApplication *)application {
    // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
    // Use this method to pause ongoing tasks disable timers and throttle down OpenGL ES frame rates. Games should use this method to pause the game.
}

- (void)applicationDidEnterBackground:(UIApplication *)application {
    // Use this method to release shared resources save user data invalidate timers and store enough application state information to restore your application to its current state in case it is terminated later.
    // If your application supports background execution this method is called instead of applicationWillTerminate: when the user quits.
}

- (void)applicationWillEnterForeground:(UIApplication *)application {
    // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background.
}

- (void)applicationDidBecomeActive:(UIApplication *)application {
    // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background optionally refresh the user interface.
}

- (void)applicationWillTerminate:(UIApplication *)application {
    // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
}

@end

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2016-06-28 09:38  UUID\
     文件        6148  2016-06-28 09:47  UUID\.DS_Store
     目录           0  2016-06-28 15:54  __MACOSX\
     目录           0  2016-06-28 15:54  __MACOSX\UUID\
     文件         120  2016-06-28 09:47  __MACOSX\UUID\._.DS_Store
     目录           0  2016-06-28 09:47  UUID\.git\
     文件          15  2016-06-28 09:10  UUID\.git\COMMIT_EDITMSG
     文件         137  2016-06-28 09:10  UUID\.git\config
     文件          73  2016-06-28 09:10  UUID\.git\description
     文件          23  2016-06-28 09:10  UUID\.git\HEAD
     目录           0  2016-06-28 09:10  UUID\.git\hooks\
     文件         177  2016-06-28 09:10  UUID\.git\hooks\README.sample
     文件        2563  2016-06-28 09:25  UUID\.git\index
     目录           0  2016-06-28 09:10  UUID\.git\info\
     文件          40  2016-06-28 09:10  UUID\.git\info\exclude
     目录           0  2016-06-28 15:54  __MACOSX\UUID\.git\
     目录           0  2016-06-28 15:54  __MACOSX\UUID\.git\info\
     文件         171  2016-06-28 09:10  __MACOSX\UUID\.git\info\._exclude
     目录           0  2016-06-28 09:10  UUID\.git\logs\
     文件         179  2016-06-28 09:10  UUID\.git\logs\HEAD
     目录           0  2016-06-28 09:10  UUID\.git\logs\refs\
     目录           0  2016-06-28 09:10  UUID\.git\logs\refs\heads\
     文件         179  2016-06-28 09:10  UUID\.git\logs\refs\heads\master
     目录           0  2016-06-28 09:25  UUID\.git\objects\
     目录           0  2016-06-28 09:10  UUID\.git\objects\0b\
     文件         460  2016-06-28 09:10  UUID\.git\objects\0b\f744676b7975b6e463be2587d044e5b5a62604
     目录           0  2016-06-28 09:11  UUID\.git\objects\0c\
     文件         165  2016-06-28 09:11  UUID\.git\objects\0c\67376ebacb410fd873cac1d8d8dd431b262c02
     目录           0  2016-06-28 09:10  UUID\.git\objects\17\
     文件         177  2016-06-28 09:10  UUID\.git\objects\17\6bad97bd1a42b43a820cf6019b48829451150d
     目录           0  2016-06-28 09:10  UUID\.git\objects\1e\
............此处省略124个文件信息

评论

共有 条评论

相关资源