悬浮广告
- (instancetype)initWithPlacementId:(NSString *)placementId frame:(CGRect)frame;
@property (nonatomic, weak) id <ZJFloatingAdViewDelegate> delegate;
@property (nonatomic, copy) NSString *placementId;
@property (nonatomic, assign) BOOL canMove;
@property (nonatomic, assign) BOOL needMoveToSide;
@property (nonatomic, weak) UIViewController *rootViewController;
- (void)loadAd;
@interface ZJFloatingAdView (ZJH5PageCustom)
@property (nonatomic, nullable, strong) UIImage *backImage;
@property (nonatomic, nullable, copy) NSAttributedString *backText;
@property (nonatomic, nullable, strong) UIImage *closeImage;
@property (nonatomic, nullable, copy) NSAttributedString *closeText;
@property (nonatomic, assign) BOOL hiddenH5CloseButton;
@property (nonatomic, nullable, copy) NSString *navigationbarTitle;
@end
self.floatingAd = [[ZJFloatingAdView alloc]initWithPlacementId:@"J2952950117" frame:CGRectZero];
self.floatingAd.delegate = self;
self.floatingAd.hiddenH5CloseButton = YES;
[self.floatingAd loadAd];
- (void)zj_floatingAdViewDidLoad:(ZJFloatingAdView *)floatingAdView{
NSLog(@"%s",__FUNCTION__);
[self.view addSubview:floatingAdView];
}