Dear All,
i using moe 1.2.5, libgdx 1.9.6-SNAPSHOT, link admob framework.
Interstitial had showed. But got error.
And the error is: ios-moe[2263:113692] Unbalanced calls to begin/end appearance transitions for <UIViewController: 0x7f9262f09330>.
My code:
public void F_ShowInterstitial() {
try {
if (interstitial != null && interstitial.isReady()) {
long time_temp = System.currentTimeMillis();
if (interstitial_TimeLastShow == 0
|| time_temp - interstitial_TimeLastShow > 5 * 1000 * 60) {
interstitial_TimeLastShow = time_temp;
if (rootViewController == null) {
rootViewController = UIViewController.alloc().init();
}
if (interstitialWindow == null) {
interstitialWindow = UIWindow.alloc().initWithFrame(UIScreen.mainScreen().bounds());
interstitialWindow.setRootViewController(rootViewController);
}
interstitialWindow.setHidden(false);
interstitialWindow.makeKeyAndVisible();
interstitial.presentFromRootViewController(rootViewController);
} else {
f_interstitialcallback();
}
} else {
f_interstitialcallback();
}
} catch (Exception e) {
f_interstitialcallback();
}
}
Please help!
Thanks!