Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
#import <UIKit/UIKit.h>
#import <MMAdSDK/MMAdSDK.h>
//This will automatically determine the size of the device and display the correct ad size
#define MILLENIAL_BANNER_AD_SIZE ((UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad) ? MMInlineAdSizeLeaderboard:MMInlineAdSizeBanner)
@interface BannerViewController : UIViewController <MMInlineDelegate>
@property (weak, nonatomic) IBOutlet UIView *adContainer;
@property (strong, nonatomic) MMInlineAd *inlineAd;
@property (nonatomic, strong) IBOutlet NSLayoutConstraint *inlineHeightConstraint;
@property (nonatomic, strong) IBOutlet NSLayoutConstraint *inlineWidthConstraint;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment