![](/img/trans.png)
[英]'NSInvalidArgumentException' / '-[AppDelegate fieldChanged:]: unrecognized selector sent to instance
[英]AppDelegate setFullscreen: unrecognized selector sent to instance
我正在嘗試在我的AppDelegate中接收RevMobAdsDelegate事件,並且正在使用以下運行時信號錯誤來調用它們。
[3496:207] [RevMob myapplication App]
SetChartBoostRequestFlag - StopLoadingWait
[3496:207] [RevMob myapplication App] StopLoadingWait routine
[3496:207] [RevMob] Starting RevMobAds
[3496:207] [RevMob] Initializing Fullscreen.
[3496:207] -[AppDelegate setFullscreen:]: unrecognized selector sent to instance 0xa20b4e0
(gdb)
我已經在我的代碼中添加了RevModAds Framework,仍然給了我這種信號錯誤。 加載開始橫幅后,應用程序崩潰了。
我已經從此處http://sdk.revmob.com/ios.html#fullscreen安裝了RevMobads sdk
您的AppDelegate中是否有setFullscreen:
方法? 如果沒有,您最好實施它。 該文檔說有一個showFullscreen
,這是不同的。
您可以執行以下操作:
#define REVMOB_APP_ID @"50cd7e844ae728120000003f"
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
[RevMobAds startSessionWithAppID:REVMOB_APP_ID];
[self showAds];
..
..
}
-(void)showAds //call this from game over, game pause
{
[[RevMobAds session] showFullscreen];
}
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.