Esempio n. 1
0
        void RemoveAdFromTableView()
        {
            if (adViewTableView != null)
            {
                if (adOnTable)
                {
                    dvcDialog.Root.RemoveAt(idx: 2, anim: UITableViewRowAnimation.Fade);
                }
                adOnTable = false;

                // You need to explicitly Dispose GADBannerView when you dont need it anymore
                // to avoid crashes if pending request are in progress
                adViewTableView.Dispose();
                adViewTableView = null;
            }
        }
Esempio n. 2
0
        void RemoveAdFromWindow()
        {
            if (adViewWindow != null)
            {
                if (adOnWindow)
                {
                    navController.View.Subviews.First().Frame = new RectangleF(0, 0, 320, UIScreen.MainScreen.Bounds.Height);
                    adViewWindow.RemoveFromSuperview();
                }
                adOnWindow = false;

                // You need to explicitly Dispose GADBannerView when you dont need it anymore
                // to avoid crashes if pending request are in progress
                adViewWindow.Dispose();
                adViewWindow = null;
            }
        }