我試圖讓IDFA,並使用此代碼:爲「AsIdentifierManager」不可見的@interface聲明選擇「advertisingIdentifier」
-(IBAction)showMessage
{
NSString *adId = [[[ASIdentifierManager sharedManager] advertisingIdentifier] UUIDString];
}
,但它有一個錯誤:沒有明顯的@interface爲「AsIdentifierManager」聲明選擇器'advertisingIdentifier'。我嘗試在我的.m文件的頂部添加「#import」,但無法修復它。誰可以幫助我?謝謝。
你有鏈接的AdSuport框架? – Radu
你在這裏添加了確切的代碼嗎?我想不是。因爲在警告中類名是不同的。錯誤是'AsI'而非'ASI' –
對不起,我打印worng,我的代碼是ASI。 – user3377917