mirror of
https://github.com/zxing/zxing.git
synced 2024-11-10 04:54:04 -08:00
tweaks to get the decode working
git-svn-id: https://zxing.googlecode.com/svn/trunk@1358 59b500cc-1b3d-0410-9834-0bbf25fbcc57
This commit is contained in:
parent
f337066fcc
commit
4ec4217f4d
|
@ -35,7 +35,6 @@
|
|||
|
||||
- (id)init {
|
||||
zxing::MultiFormatReader *reader = new zxing::MultiFormatReader();
|
||||
NSLog(@"MultiFormatReader: init called");
|
||||
return [super initWithReader:reader];
|
||||
}
|
||||
|
||||
|
|
|
@ -1092,8 +1092,9 @@
|
|||
ALWAYS_SEARCH_USER_PATHS = YES;
|
||||
ARCHS = "$(ARCHS_STANDARD_32_BIT)";
|
||||
COPY_PHASE_STRIP = NO;
|
||||
DEAD_CODE_STRIPPING = NO;
|
||||
DEAD_CODE_STRIPPING = YES;
|
||||
DSTROOT = /tmp/ZXingWidget.dst;
|
||||
EXPORTED_SYMBOLS_FILE = exportList;
|
||||
GCC_DYNAMIC_NO_PIC = NO;
|
||||
GCC_ENABLE_FIX_AND_CONTINUE = YES;
|
||||
GCC_MODEL_TUNING = G5;
|
||||
|
@ -1104,10 +1105,13 @@
|
|||
INSTALL_PATH = /usr/local/lib;
|
||||
IPHONEOS_DEPLOYMENT_TARGET = 3.1.2;
|
||||
LD_GENERATE_MAP_FILE = YES;
|
||||
LD_OPENMP_FLAGS = "-fopenmp -M";
|
||||
LD_OPENMP_FLAGS = "-fopenmp";
|
||||
MACH_O_TYPE = staticlib;
|
||||
OTHER_LDFLAGS = "-ObjC";
|
||||
PRESERVE_DEAD_CODE_INITS_AND_TERMS = YES;
|
||||
OTHER_LDFLAGS = (
|
||||
"-ObjC",
|
||||
"-M",
|
||||
);
|
||||
PRESERVE_DEAD_CODE_INITS_AND_TERMS = NO;
|
||||
PRODUCT_NAME = ZXingWidget;
|
||||
SDKROOT = iphoneos3.1.3;
|
||||
SEPARATE_STRIP = NO;
|
||||
|
|
|
@ -81,6 +81,7 @@ CGImageRef UIGetScreenImage();
|
|||
|
||||
- (void)viewDidAppear:(BOOL)animated {
|
||||
[super viewDidAppear:animated];
|
||||
[overlayView setPoints:nil];
|
||||
wasCancelled = false;
|
||||
[NSTimer scheduledTimerWithTimeInterval: FIRST_TAKE_DELAY
|
||||
target: self
|
||||
|
@ -138,16 +139,16 @@ CGImageRef UIGetScreenImage();
|
|||
// [self presentResultForString:twoDResult.text];
|
||||
NSLog(@"decoded image!!");
|
||||
[self presentResultPoints:[twoDResult points] forImage:image usingSubset:subset];
|
||||
if (delegate != nil) {
|
||||
[delegate scanResult:[twoDResult text]];
|
||||
}
|
||||
// now, in a selector, call the delegate to give this overlay time to show the points
|
||||
[self performSelectorOnMainThread:@selector(alertDelegate:) withObject:[[twoDResult text] copy] waitUntilDone:false];
|
||||
decoder.delegate = nil;
|
||||
[decoder release];
|
||||
|
||||
// save the scan to the shared database
|
||||
// [[Database sharedDatabase] addScanWithText:twoDResult.text];
|
||||
// need to call delegate....`
|
||||
// [self performResultAction:self];
|
||||
}
|
||||
|
||||
- (void)alertDelegate:(id)text {
|
||||
if (delegate != nil) {
|
||||
[delegate scanResult:text];
|
||||
}
|
||||
}
|
||||
|
||||
- (void)decoder:(Decoder *)decoder failedToDecodeImage:(UIImage *)image usingSubset:(UIImage *)subset reason:(NSString *)reason {
|
||||
|
|
1
iphone/ZXingWidget/exportList
Normal file
1
iphone/ZXingWidget/exportList
Normal file
|
@ -0,0 +1 @@
|
|||
.objc_class_name_MultiFormatReader
|
Loading…
Reference in a new issue