diff --git a/iphone/Barcodes/Classes/ArchiveController.h b/iphone/Barcodes/Classes/ArchiveController.h
index 530d16bd2..c6c725104 100644
--- a/iphone/Barcodes/Classes/ArchiveController.h
+++ b/iphone/Barcodes/Classes/ArchiveController.h
@@ -3,6 +3,7 @@
// UIShowcase
//
// Created by Christian Brunschen on 29/05/2008.
+// Modified by Romain Pechayre on 16/11/2010
/*
* Copyright 2008 ZXing authors
*
diff --git a/iphone/Barcodes/Classes/ArchiveController.m b/iphone/Barcodes/Classes/ArchiveController.m
index 10dd8e44b..a1b1008c2 100644
--- a/iphone/Barcodes/Classes/ArchiveController.m
+++ b/iphone/Barcodes/Classes/ArchiveController.m
@@ -139,6 +139,11 @@
- (void)viewWillAppear:(BOOL)animated {
[super viewWillAppear:animated];
+ self.scans = [NSMutableArray arrayWithArray:[[Database sharedDatabase] scans]];
+ self.results = [NSMutableArray arrayWithCapacity:self.scans.count];
+ for (Scan *scan in scans) {
+ [results addObject:[ResultParser parsedResultForString:scan.text]];
+ }
}
- (void)viewDidAppear:(BOOL)animated {
diff --git a/iphone/Barcodes/Classes/ZXMainViewController.h b/iphone/Barcodes/Classes/ZXMainViewController.h
index baa568079..82f9e07c3 100644
--- a/iphone/Barcodes/Classes/ZXMainViewController.h
+++ b/iphone/Barcodes/Classes/ZXMainViewController.h
@@ -19,7 +19,6 @@
UniversalResultParser *resultParser;
NSArray *actions;
ParsedResult *result;
- IBOutlet UILabel *latestResultLabel;
IBOutlet UITextView *resultView;
}
@@ -27,7 +26,6 @@
@property (nonatomic,assign) NSArray *actions;
@property (nonatomic,assign) ParsedResult *result;
@property (nonatomic,retain) IBOutlet UITextView *resultView;
-@property (nonatomic,retain) IBOutlet UILabel *latestResultLabel;
- (IBAction)scan:(id)sender;
- (IBAction)info:(id)sender;
diff --git a/iphone/Barcodes/Classes/ZXMainViewController.xib b/iphone/Barcodes/Classes/ZXMainViewController.xib
index a777a8794..8c45f0a23 100644
--- a/iphone/Barcodes/Classes/ZXMainViewController.xib
+++ b/iphone/Barcodes/Classes/ZXMainViewController.xib
@@ -42,7 +42,7 @@
274
@@ -302,7 +299,7 @@
10
-
+
@@ -317,22 +314,22 @@
15
-
+
17
-
+
19
-
+
20
-
+
@@ -369,7 +366,7 @@
com.apple.InterfaceBuilder.IBCocoaTouchPlugin
com.apple.InterfaceBuilder.IBCocoaTouchPlugin
- P4AAAL+AAABDCQAAw90AAA
+ P4AAAL+AAABAoAAAw98AAA
com.apple.InterfaceBuilder.IBCocoaTouchPlugin