使用AdSupport.framework生成IDFA唯一标识符

使用AdSupport.framework生成IDFA唯一标识符

需要引入框架 AdSupport.framework

在开发的时候引入.h文件 

  #import <AdSupport/AdSupport.h>

NSString* uuidStr = [[[ASIdentifierManager sharedManager] advertisingIdentifier] UUIDString];

获得的uuid格式如 CA304507-BDE1-495F-9AD8-1E4C6C275A47

猜你喜欢

转载自stephen830.iteye.com/blog/2251417