How to center banner Ad in Swift for iPhone 6


#1

Hi guys,

I used the Mopub installation by the Fabric tool

// setup MoPub
        self.adView.delegate = self
        self.adView.frame = CGRectMake(0, self.view.bounds.size.height - MOPUB_BANNER_SIZE.height,
            MOPUB_BANNER_SIZE.width, MOPUB_BANNER_SIZE.height)
        self.view.addSubview(self.adView)
        self.adView.loadAd()

In the (very bad) documentation (as everything is in Objective-C), do I need to center the view (because I used the Fabric tool) or not?

It’s a pity that the help pages aren’t available (Page doesn’t exist).