2
我正在處理以前工作正常的應用程序。我只是將revmob集成到應用程序中。以下是我在應用程序代理中實現的代碼iOS應用程序集成revmob後隨機崩潰
- (void)showBannerWindow
{
self.bannerWindow = [[RevMobAds session] banner];
[self.bannerWindow loadWithSuccessHandler:^(RevMobBanner *banner) {
[banner showAd];
[self revmobAdDidReceive];
} andLoadFailHandler:^(RevMobBanner *banner, NSError *error) {
[self revmobAdDidFailWithError:error];
} onClickHandler:^(RevMobBanner *banner) {
[self revmobUserClickedInTheAd];}];
}
-(void)removeBannerWindow
{
[self.bannerWindow hideAd];
}
我在各種控制器中使用此應用程序委託方法。我只是隱藏並顯示push和pop上的revmobwindow橫幅廣告。
MyAppDelegate *appDelegate = (MyAppDelegate *)[[UIApplication sharedApplication] delegate];
[appDelegate showBannerWindow];
現在應用程序隨機崩潰,每次我收到「setStatus」錯誤如下。
Terminating app due to uncaught exception 'NSInvalidArgumentException',
reason: '-[CALayer setStatus:]: unrecognized selector sent to instance 0xac51e40'
Terminating app due to uncaught exception 'NSInvalidArgumentException',
reason: '-[NSURL setStatus:]: unrecognized selector sent to instance 0xafa3530'
看起來這是在RevMob SDK(http://stackoverflow.com/q/21333170/634185)的錯誤。 –
@diogot是的,它似乎是RevMob SDK中的一個錯誤 – Shekhu