-
Notifications
You must be signed in to change notification settings - Fork 1
iOS Banner Advanced Usage
Mert Celik edited this page Sep 24, 2018
·
1 revision
If default Top and Bottom positions are not fitting the view hierarchy of your app, you can give it a custom positioning like in the example below:
N.B: If you want to use advanced usage, do NOT enable auto-loading for that format.
[YOUR_CUSTOM_VIEW addSubview:[AMBanner sharedInstance]];
[AMBanner sharedInstance].frame = CGRectMake(0,0,YOUR_CUSTOM_VIEW.bounds.size.width, 50);
[AMBanner loadAd];
[AMBanner removeBanner];