Commit e22b96c10508eb415bedfa4b7dde6c13d2b2ddb7
1 parent
450f8e21
原生bug修复
Showing
1 changed file
with
5 additions
and
2 deletions
VLionAdSDKDemo/VLionAdSDKDemo/NativeInfosDemoController.m
| ... | ... | @@ -17,6 +17,7 @@ |
| 17 | 17 | @interface NativeInfosDemoController () |
| 18 | 18 | { |
| 19 | 19 | NSString *ldp; |
| 20 | + NSString *oldLdp; | |
| 20 | 21 | NSArray <NSString *>*_clk_tracking; |
| 21 | 22 | int _interact_type; |
| 22 | 23 | } |
| ... | ... | @@ -35,7 +36,7 @@ |
| 35 | 36 | - (void)viewDidLoad { |
| 36 | 37 | [super viewDidLoad]; |
| 37 | 38 | // Do any additional setup after loading the view. |
| 38 | - self.view.backgroundColor = [UIColor lightGrayColor]; | |
| 39 | + self.view.backgroundColor = [UIColor whiteColor]; | |
| 39 | 40 | [self bindView]; |
| 40 | 41 | [self loadData]; |
| 41 | 42 | } |
| ... | ... | @@ -125,6 +126,7 @@ |
| 125 | 126 | ldp = @""; |
| 126 | 127 | } |
| 127 | 128 | _interact_type = adModel.interact_type; |
| 129 | + oldLdp = ldp; | |
| 128 | 130 | } |
| 129 | 131 | }]; |
| 130 | 132 | } |
| ... | ... | @@ -147,7 +149,7 @@ |
| 147 | 149 | if (clkArr.count > 0 && clkArr) { |
| 148 | 150 | [[VLionMonitorTrackingManager manager] uploadTrackingUrls:clkArr]; |
| 149 | 151 | } |
| 150 | - | |
| 152 | + ldp = oldLdp; | |
| 151 | 153 | NSArray <NSString *>*ldpArr = [self insteadAdMonitoringMacroWithArr:@[ldp] upPoint:point downPoint:point]; |
| 152 | 154 | ldp = ldpArr[0]; |
| 153 | 155 | |
| ... | ... | @@ -215,6 +217,7 @@ |
| 215 | 217 | _adView = [[UIView alloc] initWithFrame:CGRectMake(0, (IPHONEX ? 88:64) + 20, self.view.bounds.size.width, 300)]; |
| 216 | 218 | _adView.userInteractionEnabled = YES; |
| 217 | 219 | [_adView addGestureRecognizer:[[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(tapAd:)]]; |
| 220 | + _adView.backgroundColor = [UIColor lightGrayColor]; | |
| 218 | 221 | } |
| 219 | 222 | return _adView; |
| 220 | 223 | } | ... | ... |