SachinKS 2013-06-20 07:43 采纳率: 0%
浏览 2676
已采纳

报错: 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 2013-06-20 09: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];
      }
    

    试试看

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?