Skip to content

Instantly share code, notes, and snippets.

@mjonesjr90
Created June 13, 2017 19:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mjonesjr90/9b9c8e4c657f6736edaececb8a32e9c4 to your computer and use it in GitHub Desktop.
Save mjonesjr90/9b9c8e4c657f6736edaececb8a32e9c4 to your computer and use it in GitHub Desktop.
#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;
@end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment