IOS - - 获取设备的UUID

+(NSString*) getIdfa {
    if (IOS_6_OR_LATER) {
        NSString *adId =[[[ASIdentifierManager sharedManager] advertisingIdentifier] UUIDString];
        NSLog(@"getIdfa = %@", adId);
        return adId;
    }
    else
        return nil;
}

 

posted @ 2017-09-18 11:55  熹微_念  阅读(350)  评论(0编辑  收藏  举报