Apple對(duì)UDID廢棄的聲明早從iOS4開(kāi)始,iOS5中需要慎重使用。而在iOS6中終于提供了UDID的替代產(chǎn)品identifierForAdvertising和identifierForVendor。Apple對(duì)其的描述如下:
@property(nonatomic,readonly,retain) NSUUID *identifierForAdvertising NS_AVAILABLE_IOS(6_0); // a UUID that may be used to uniquely identify the device for advertising purposes, same across apps.
Note: identifierForAdvertising會(huì)在系統(tǒng)reset時(shí)重新生成。
@property(nonatomic,readonly,retain) NSUUID *identifierForVendor NS_AVAILABLE_IOS(6_0); // a UUID that may be used to uniquely identify the device, same across apps from a single vendor.
另外有需要云服務(wù)器可以了解下創(chuàng)新互聯(lián)scvps.cn,海內(nèi)外云服務(wù)器15元起步,三天無(wú)理由+7*72小時(shí)售后在線,公司持有idc許可證,提供“云服務(wù)器、裸金屬服務(wù)器、高防服務(wù)器、香港服務(wù)器、美國(guó)服務(wù)器、虛擬主機(jī)、免備案服務(wù)器”等云主機(jī)租用服務(wù)以及企業(yè)上云的綜合解決方案,具有“安全穩(wěn)定、簡(jiǎn)單易用、服務(wù)可用性高、性價(jià)比高”等特點(diǎn)與優(yōu)勢(shì),專(zhuān)為企業(yè)上云打造定制,能夠滿足用戶豐富、多元化的應(yīng)用場(chǎng)景需求。