Swift iAd : How to resize AdBannerView?

| | August 10, 2015

I’m gonna use iAd for my new app. I am using AdBannerView right now. AdBannerView size does not change. Also I created another UIView to make a popup for iAd. I need a advertise as a popup. How can I resize the AdBannerView and put my UIView ?

My Simple view popup :

 @IBAction func popupBtn(sender: AnyObject) {
        UIView.animateWithDuration(0.5, animations: {
            self.popup.alpha = 1
            }, completion: {
                (value: Bool) in
                self.popup.hidden = false
        })
    }

    @IBAction func popupCloseBtn(sender: AnyObject) {
        UIView.animateWithDuration(0.5, animations: {
            self.popup.alpha = 0
            }, completion: {
                (value: Bool) in
                self.popup.hidden = true
        })
    }

Note : Named popup is the UView.

Leave a Reply