获取idfa

    BOOLisHave= [[ASIdentifierManager sharedManager] isAdvertisingTrackingEnabled];

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

    if(isHave ==YES) {

        NSLog(@"%@>>>>>>>>有值",uuid);

    }else{

        NSLog(@"%@>>>>>>>没有",uuid);

    }

    NSLog(@"%@>>>>>>>",uuid);

你可能感兴趣的:(获取idfa)