2 sachinks SachinKS 于 2013.06.20 15:43 提问

报错: 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添加到代码中了。在加载的时候应用还会崩溃。
安装RevMobads sdk http://sdk.revmob.com/ios.html#fullscreen

1个回答

gaoXxxing
gaoXxxing   2013.06.20 17:22
已采纳
  #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];
  }

试试看

Csdn user default icon
上传中...
上传图片
插入图片
准确详细的回答,更有利于被提问者采纳,从而获得C币。复制、灌水、广告等回答会被删除,是时候展现真正的技术了!