From 98b25eefe2895e0ed38a906826b30507a18f097b Mon Sep 17 00:00:00 2001 From: Jon Tara Date: Fri, 23 Jul 2021 22:36:36 -0700 Subject: [PATCH] ref #3 remove resultText subview --- .../platform/iphone/Classes/BarcodeViewController.m | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/lib/commonAPI/barcode/ext/platform/iphone/Classes/BarcodeViewController.m b/lib/commonAPI/barcode/ext/platform/iphone/Classes/BarcodeViewController.m index 47bbb5d9b3..b44b9bc55e 100644 --- a/lib/commonAPI/barcode/ext/platform/iphone/Classes/BarcodeViewController.m +++ b/lib/commonAPI/barcode/ext/platform/iphone/Classes/BarcodeViewController.m @@ -783,7 +783,11 @@ - (id)initWithRect:(CGRect)rect{ [self.view addSubview:readerView]; #endif - [self.view addSubview:resultText]; + // TODO: check SDK property + if (false) { + [self.view addSubview:resultText]; + } + [self.view addSubview:toolbar]; //[readerView start]; @@ -1369,7 +1373,12 @@ - (void)dealloc { [readerView removeFromSuperview]; #endif [toolbar removeFromSuperview]; - [resultText removeFromSuperview]; + + // TODO: check SDK property + if (false) { + [resultText removeFromSuperview]; + } + #ifdef ZBAR [readerView release]; readerView = nil;