1
無數的GameCenter教程做到這一點:爲什麼GKPlayerAuthenticationDidChangeNotificationName一個「未聲明的標識符」
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(localUserAuthenticationChanged) name:GKPlayerAuthenticationDidChangeNotificationName object:nil];
我對用戶進行認證等其他標準的GameCenter的方法,但我想的遊戲中心登錄變化收到通知,而應用程序是在後臺;根據很多書籍,在線提示,上面的代碼行是你怎麼聽的。
但我無法構建應用程序。它聲稱name:GKPlayerAuthenticationDidChangeNotificationName
是一個未聲明的標識符......這是在其他GameCenter代碼正常工作正常後(並且庫和框架確實導入)。
任何想法我的name:GKPlayerAuthenticationDidChangeNotificationName
有什麼問題?
哎呀,我以爲我有,但我把它放在不同的文件錯誤!謝謝。 – johnbakers 2012-02-29 10:54:49