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