Latest 1.0.1
Homepage https://github.com/adrientruong/AQTAdBannerViewController
License MIT
Platforms ios 8.0, requires ARC
Authors

A container view controller for adding banner ads to your app. It handles hiding and showing the banner ad as well as animating this change for you.

Installing

Add one of these to your Podfile:

Core (abstract base class to subclass to add custom ad banners):

pod 'AQTAdBannerViewController'

iAd:

pod 'AQTAdBannerViewController/iAd'

MoPub:

pod 'AQTAdBannerViewController/MoPub'

Usage

// iAd
AQTiAdBannerViewController *bannerViewController = [[AQTiAdBannerViewController alloc] init];

// or MoPub
AQTMoPubBannerViewController *bannerViewController = [[AQTMoPubBannerViewController alloc] initWithAdUnitID:@"<your ad unit id>"];

UIViewController *contentViewController = [[UIViewController alloc] init];
bannerViewController.contentViewController = contentViewController;

// toggling ads
bannerViewController.showsAds = NO;

// changing position of banner
bannerViewController.bannerPosition = AQTBannerPositionBottom;

Latest podspec

{
    "name": "AQTAdBannerViewController",
    "version": "1.0.1",
    "license": "MIT",
    "summary": "A container view controller to display ad banners",
    "homepage": "https://github.com/adrientruong/AQTAdBannerViewController",
    "authors": {
        "Adrien Truong": "[email protected]"
    },
    "source": {
        "git": "https://github.com/adrientruong/AQTAdBannerViewController.git",
        "tag": "1.0.1"
    },
    "requires_arc": true,
    "source_files": "AQTAdBannerViewController/AQTAdBannerViewController.{h,m}",
    "platforms": {
        "ios": "8.0"
    },
    "subspecs": [
        {
            "name": "Core",
            "source_files": "AQTAdBannerViewController/AQTAdBannerViewController.{h,m}"
        },
        {
            "name": "iAd",
            "source_files": "AQTAdBannerViewController/AQTiAdBannerViewController.{h,m}",
            "dependencies": {
                "AQTAdBannerViewController/Core": []
            }
        },
        {
            "name": "MoPub",
            "source_files": "AQTAdBannerViewController/AQTMoPubAdBannerViewController.{h,m}",
            "dependencies": {
                "AQTAdBannerViewController/Core": [],
                "mopub-ios-sdk": [
                    "~> 4.1"
                ]
            }
        }
    ]
}

Pin It on Pinterest

Share This