SachinKS
SachinKS
2013-06-20 07:43
采纳率: 85.7%
浏览 2.6k
已采纳

报错: 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 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];
      }
    

    试试看

    点赞 评论

相关推荐